[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-4' - loleaflet/plugins loleaflet/src

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Mar 21 14:05:48 UTC 2019


 loleaflet/plugins/path-transform/src/Path.Transform.js |    2 +-
 loleaflet/src/layer/vector/CircleMarker.js             |    4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 3cc714b49b6e29429d45818a281cd77a209dbec2
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Thu Mar 21 16:04:58 2019 +0200
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Thu Mar 21 16:05:25 2019 +0200

    Make the image resize and rotate handles larger in a mobile app

diff --git a/loleaflet/plugins/path-transform/src/Path.Transform.js b/loleaflet/plugins/path-transform/src/Path.Transform.js
index 50171d4ea..f7efd72cc 100644
--- a/loleaflet/plugins/path-transform/src/Path.Transform.js
+++ b/loleaflet/plugins/path-transform/src/Path.Transform.js
@@ -534,7 +534,7 @@ L.Handler.PathTransform = L.Handler.extend({
 		L.PathTransform.pointOnLine(
 			map.latLngToLayerPoint(bottom),
 			map.latLngToLayerPoint(topPoint),
-			this.options.handleLength)
+		        (window.ThisIsAMobileApp ? this.options.handleLength * 3 : this.options.handleLength))
 		);
 
 		this._handleLine = new L.Polyline([topPoint, handlerPosition],
diff --git a/loleaflet/src/layer/vector/CircleMarker.js b/loleaflet/src/layer/vector/CircleMarker.js
index 837471440..fd9a2e1fa 100644
--- a/loleaflet/src/layer/vector/CircleMarker.js
+++ b/loleaflet/src/layer/vector/CircleMarker.js
@@ -14,6 +14,8 @@ L.CircleMarker = L.Path.extend({
 		L.setOptions(this, options);
 		this._latlng = L.latLng(latlng);
 		this._radius = this.options.radius;
+		if (window.ThisIsAMobileApp)
+			this._radius *= 3;
 	},
 
 	setLatLng: function (latlng) {
@@ -28,6 +30,8 @@ L.CircleMarker = L.Path.extend({
 
 	setRadius: function (radius) {
 		this.options.radius = this._radius = radius;
+		if (window.ThisIsAMobileApp)
+			this._radius *= 3;
 		return this.redraw();
 	},
 


More information about the Libreoffice-commits mailing list