From fe2836d632b14e19c0258aa7f5bebf1dbf38759e Mon Sep 17 00:00:00 2001 From: kovacsv Date: Sun, 15 Aug 2021 19:13:41 +0200 Subject: [PATCH] Do not prevent default event for handlers that registered for the whole document, because in this case selection won't work. --- source/viewer/navigation.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/source/viewer/navigation.js b/source/viewer/navigation.js index 808f642..12d634c 100644 --- a/source/viewer/navigation.js +++ b/source/viewer/navigation.js @@ -388,8 +388,6 @@ OV.Navigation = class OnMouseMove (ev) { - ev.preventDefault (); - this.mouse.Move (this.canvas, ev); this.clickDetector.Move (); if (!this.mouse.IsButtonDown ()) { @@ -412,8 +410,6 @@ OV.Navigation = class OnMouseUp (ev) { - ev.preventDefault (); - this.mouse.Up (this.canvas, ev); this.clickDetector.Up (ev); if (this.clickDetector.IsClick ()) { @@ -424,8 +420,6 @@ OV.Navigation = class OnMouseLeave (ev) { - ev.preventDefault (); - this.mouse.Leave (this.canvas, ev); this.clickDetector.Leave (); }