[Libreoffice-commits] online.git: loleaflet/src
Ashod Nakashian (via logerrit)
logerrit at kemper.freedesktop.org
Tue Feb 11 15:20:32 UTC 2020
loleaflet/src/map/handler/Map.TouchGesture.js | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 5720a4be8013ade37aa9b42691bec66729fb6ef8
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
AuthorDate: Thu Feb 6 19:01:58 2020 -0500
Commit: Jan Holesovsky <kendy at collabora.com>
CommitDate: Tue Feb 11 16:20:14 2020 +0100
leaflet: hide the keyboard during and after dragging the document
Change-Id: I5228358353cf04b838a90fc53f5987e9ac623f47
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88155
Tested-by: Jan Holesovsky <kendy at collabora.com>
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/loleaflet/src/map/handler/Map.TouchGesture.js b/loleaflet/src/map/handler/Map.TouchGesture.js
index 4d8209761..72f6c4166 100644
--- a/loleaflet/src/map/handler/Map.TouchGesture.js
+++ b/loleaflet/src/map/handler/Map.TouchGesture.js
@@ -445,6 +445,9 @@ L.Map.TouchGesture = L.Handler.extend({
} else {
this._map.dragging._draggable._onDown(this._constructFakeEvent(point, 'mousedown'));
}
+
+ // No keyboard while dragging.
+ this._map.focus(false);
},
_onPan: function (e) {
@@ -493,6 +496,9 @@ L.Map.TouchGesture = L.Handler.extend({
} else {
this._map.dragging._draggable._onUp(this._constructFakeEvent(point, 'mouseup'));
}
+
+ // No keyboard after dragging.
+ this._map.focus(false);
},
_onPinchStart: function (e) {
More information about the Libreoffice-commits
mailing list