From ce57dff028fe11d37f95696571579646bd122ba0 Mon Sep 17 00:00:00 2001 From: kovacsv Date: Sun, 12 Dec 2021 21:24:42 +0100 Subject: [PATCH] Handle touchcancel, because touchend doesn't work on android. --- source/viewer/navigation.js | 1 + 1 file changed, 1 insertion(+) diff --git a/source/viewer/navigation.js b/source/viewer/navigation.js index 89e46ff..d884dc3 100644 --- a/source/viewer/navigation.js +++ b/source/viewer/navigation.js @@ -246,6 +246,7 @@ OV.Navigation = class this.canvas.addEventListener ('wheel', this.OnMouseWheel.bind (this)); this.canvas.addEventListener ('touchstart', this.OnTouchStart.bind (this)); this.canvas.addEventListener ('touchmove', this.OnTouchMove.bind (this)); + this.canvas.addEventListener ('touchcancel', this.OnTouchEnd.bind (this)); this.canvas.addEventListener ('touchend', this.OnTouchEnd.bind (this)); this.canvas.addEventListener ('contextmenu', this.OnContextMenu.bind (this)); }