This commit is contained in:
Evert Prants 2022-04-03 22:44:57 +03:00
parent f4b6cd4cdf
commit b854218789
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
1 changed files with 1 additions and 0 deletions

View File

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