[Libreoffice-commits] online.git: loleaflet/src
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Mar 26 10:54:46 UTC 2019
loleaflet/src/control/Control.LokDialog.js | 1 +
1 file changed, 1 insertion(+)
New commits:
commit bced2a313af42dc1c3eaef552bf66869d15ff856
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Tue Mar 26 12:52:08 2019 +0200
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Tue Mar 26 12:53:51 2019 +0200
Prevent whole page from scrolling when dragging in a combo box in a dialog
Change-Id: Ifcc256f0a882be6afe7a82cd7c95c5059b107bf7
diff --git a/loleaflet/src/control/Control.LokDialog.js b/loleaflet/src/control/Control.LokDialog.js
index 3222976e3..68216fb1f 100644
--- a/loleaflet/src/control/Control.LokDialog.js
+++ b/loleaflet/src/control/Control.LokDialog.js
@@ -673,6 +673,7 @@ L.Control.LokDialog = L.Control.extend({
L.DomEvent.on(canvas, 'contextmenu', L.DomEvent.preventDefault);
L.DomEvent.on(canvas, 'touchstart touchmove touchend', function(e) {
+ L.DomEvent.preventDefault(e);
var rect = canvas.getBoundingClientRect();
var touchX = (e.type === 'touchend') ? e.changedTouches[0].clientX : e.targetTouches[0].clientX;
var touchY = (e.type === 'touchend') ? e.changedTouches[0].clientY : e.targetTouches[0].clientY;
More information about the Libreoffice-commits
mailing list