[Libreoffice-commits] online.git: Branch 'distro/collabora/milestone-7' - loleaflet/src
Marco Cecchetti
marco.cecchetti at collabora.com
Mon Jan 25 09:55:10 PST 2016
loleaflet/src/dom/Draggable.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 555e29a8a7c7d004a079bde7f127721d7f347405
Author: Marco Cecchetti <marco.cecchetti at collabora.com>
Date: Mon Jan 25 17:07:38 2016 +0100
loleaftlet - enable propagation of the onmousedown in view mode
For details see bug bccu1446.
Change-Id: I91585e2402aea2e72645b7358ee68efc8b7de313
diff --git a/loleaflet/src/dom/Draggable.js b/loleaflet/src/dom/Draggable.js
index 4e7280d..aebaf11 100644
--- a/loleaflet/src/dom/Draggable.js
+++ b/loleaflet/src/dom/Draggable.js
@@ -48,7 +48,11 @@ L.Draggable = L.Evented.extend({
if (e.shiftKey || ((e.which !== 1) && (e.button !== 0) && !e.touches)) { return; }
- L.DomEvent.stopPropagation(e);
+ // enable propagation of the mousedown event from map pane to parent elements in view mode
+ // see bug bccu1446
+ if (!L.DomUtil.hasClass(this._element, 'leaflet-map-pane')) {
+ L.DomEvent.stopPropagation(e);
+ }
if (this._preventOutline) {
L.DomUtil.preventOutline(this._element);
More information about the Libreoffice-commits
mailing list