[Libreoffice-commits] online.git: loleaflet/src
Henry Castro
hcastro at collabora.com
Sun Jun 28 21:28:00 PDT 2015
loleaflet/src/layer/tile/TileLayer.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit ec2de8f46e11b701973c2240e144849da46e2c54
Author: Henry Castro <hcastro at collabora.com>
Date: Mon Jun 29 00:27:00 2015 -0400
loleaflet: Disable mouse when dragging text.
diff --git a/loleaflet/src/layer/tile/TileLayer.js b/loleaflet/src/layer/tile/TileLayer.js
index a36d2a0..805e0a8 100644
--- a/loleaflet/src/layer/tile/TileLayer.js
+++ b/loleaflet/src/layer/tile/TileLayer.js
@@ -671,6 +671,9 @@ L.TileLayer = L.GridLayer.extend({
_onMouseEvent: function (e) {
if (this._graphicMarker && this._graphicMarker.isDragged) { return; }
+ if (this._startMarker.isDragged === true || this._endMarker.isDragged === true)
+ return;
+
if (e.type === 'mousedown') {
this._selecting = true;
this._clearSelections();
@@ -887,7 +890,7 @@ L.TileLayer = L.GridLayer.extend({
// Update text selection handlers.
_onUpdateTextSelection: function () {
- if ( this._startMarker.isDragged === true || this._endMarker.isDragged === true)
+ if (this._startMarker.isDragged === true || this._endMarker.isDragged === true)
return;
if (this._selections.getLayers().length !== 0) {
More information about the Libreoffice-commits
mailing list