[Libreoffice-commits] online.git: loleaflet/src

Tor Lillqvist (via logerrit) logerrit at kemper.freedesktop.org
Mon Sep 16 14:21:54 UTC 2019


 loleaflet/src/layer/vector/CircleMarker.js   |    4 ----
 loleaflet/src/layer/vector/Path.Transform.js |    2 +-
 2 files changed, 1 insertion(+), 5 deletions(-)

New commits:
commit 6c332c818251afddbaf42b13e18707403e26a2f8
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Thu Aug 29 18:21:01 2019 +0300
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Mon Sep 16 16:21:36 2019 +0200

    Revert "Make the image resize and rotate handles larger in a mobile app"
    
    There is now other code that takes care of it.
    
    This reverts commit 3cc714b49b6e29429d45818a281cd77a209dbec2.
    
    Change-Id: I9c777e1592d1c5e0fc931307b24e63743cd4da5b
    Reviewed-on: https://gerrit.libreoffice.org/78279
    Reviewed-by: Tor Lillqvist <tml at collabora.com>
    Tested-by: Tor Lillqvist <tml at collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/79014

diff --git a/loleaflet/src/layer/vector/CircleMarker.js b/loleaflet/src/layer/vector/CircleMarker.js
index fd9a2e1fa..837471440 100644
--- a/loleaflet/src/layer/vector/CircleMarker.js
+++ b/loleaflet/src/layer/vector/CircleMarker.js
@@ -14,8 +14,6 @@ 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) {
@@ -30,8 +28,6 @@ L.CircleMarker = L.Path.extend({
 
 	setRadius: function (radius) {
 		this.options.radius = this._radius = radius;
-		if (window.ThisIsAMobileApp)
-			this._radius *= 3;
 		return this.redraw();
 	},
 
diff --git a/loleaflet/src/layer/vector/Path.Transform.js b/loleaflet/src/layer/vector/Path.Transform.js
index 7ec3be6b6..47a32698e 100644
--- a/loleaflet/src/layer/vector/Path.Transform.js
+++ b/loleaflet/src/layer/vector/Path.Transform.js
@@ -550,7 +550,7 @@ L.Handler.PathTransform = L.Handler.extend({
 		L.PathTransform.pointOnLine(
 			map.latLngToLayerPoint(bottom),
 			map.latLngToLayerPoint(topPoint),
-		        (window.ThisIsAMobileApp ? this.options.handleLength * 3 : this.options.handleLength))
+			this.options.handleLength)
 		);
 
 		this._handleLine = new L.Polyline([topPoint, handlerPosition],


More information about the Libreoffice-commits mailing list