test fix 2

This commit is contained in:
Evert Prants 2022-04-03 22:46:33 +03:00
parent b854218789
commit 46597169c5
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -169,7 +169,7 @@ export class ViewCanvas {
this._dragging = false; this._dragging = false;
}); });
this._wrapper.addEventListener('touchstart', (ev: TouchEvent) => { this._container.addEventListener('touchstart', (ev: TouchEvent) => {
ev.preventDefault(); ev.preventDefault();
const touch = ev.touches[0] || ev.changedTouches[0]; const touch = ev.touches[0] || ev.changedTouches[0];
this._mousex = touch.pageX; this._mousex = touch.pageX;