[Libreoffice-commits] online.git: Branch 'feature/calc-canvas' - loleaflet/src
Szymon KÅos (via logerrit)
logerrit at kemper.freedesktop.org
Wed Sep 9 13:11:10 UTC 2020
loleaflet/src/layer/marker/Marker.Drag.js | 6 ------
loleaflet/src/layer/marker/Marker.js | 7 -------
2 files changed, 13 deletions(-)
New commits:
commit 048ba09c5a6c48006e70cb0d800cbd318f9c2783
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Wed Sep 9 15:08:20 2020 +0200
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Wed Sep 9 15:10:42 2020 +0200
Don't block handling of touch events
This is partial revert of 901ecca313.
Handles (Markers) 'down' handler disabled
main TouchGesture handler what caused
taps to be ignored. Eg. double click didn't
enter edit mode for a Calc cell.
Change-Id: Id7097e9ad513e56a71423a6d6a8ac5105c373f77
diff --git a/loleaflet/src/layer/marker/Marker.Drag.js b/loleaflet/src/layer/marker/Marker.Drag.js
index 179408e9b..1df958e52 100644
--- a/loleaflet/src/layer/marker/Marker.Drag.js
+++ b/loleaflet/src/layer/marker/Marker.Drag.js
@@ -16,7 +16,6 @@ L.Handler.MarkerDrag = L.Handler.extend({
}
this._draggable.on({
- down: this._onDown,
dragstart: this._onDragStart,
drag: this._onDrag,
dragend: this._onDragEnd,
@@ -28,7 +27,6 @@ L.Handler.MarkerDrag = L.Handler.extend({
removeHooks: function () {
this._draggable.off({
- down: this._onDown,
dragstart: this._onDragStart,
drag: this._onDrag,
dragend: this._onDragEnd,
@@ -54,10 +52,6 @@ L.Handler.MarkerDrag = L.Handler.extend({
this._draggable.freezeY(boolChoice);
},
- _onDown: function (e) {
- this._marker.fire('down', e);
- },
-
_onDragStart: function (e) {
this._marker
.closePopup()
diff --git a/loleaflet/src/layer/marker/Marker.js b/loleaflet/src/layer/marker/Marker.js
index a73c1826d..10e8038ad 100644
--- a/loleaflet/src/layer/marker/Marker.js
+++ b/loleaflet/src/layer/marker/Marker.js
@@ -23,7 +23,6 @@ L.Marker = L.Layer.extend({
initialize: function (latlng, options) {
L.setOptions(this, options);
this._latlng = L.latLng(latlng);
- this.on('down', this.onDown);
},
setDraggable: function(val) {
@@ -55,12 +54,6 @@ L.Marker = L.Layer.extend({
this._removeShadow();
},
- onDown: function () {
- if (this._map && this._map.touchGesture) {
- this._map.touchGesture.disable();
- }
- },
-
getEvents: function () {
var events = {viewreset: this.update};
More information about the Libreoffice-commits
mailing list