This commit is contained in:
Evert Prants 2022-04-03 17:19:37 +03:00
parent daca11cbd4
commit e7f2d928fe
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
1 changed files with 4 additions and 1 deletions

View File

@ -194,9 +194,12 @@ export class ViewCanvas {
});
this._wrapper.addEventListener('touchend', (ev: TouchEvent) => {
this._dragging = false;
this._pinching = false;
this._previousPinchLength = 0;
if (!ev.touches?.length) {
this._dragging = false;
}
});
this._wrapper.addEventListener('pointerleave', (ev: MouseEvent) => {