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

New commits:
commit 3e0ae523da10f3b82c0f83c53259ec320645cd5f
Author:     Tor Lillqvist <t...@collabora.com>
AuthorDate: Thu Mar 21 16:04:58 2019 +0200
Commit:     Tor Lillqvist <t...@collabora.com>
CommitDate: Thu Mar 21 16:08:17 2019 +0200

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

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();
        },
 
diff --git a/loleaflet/src/layer/vector/Path.Transform.js 
b/loleaflet/src/layer/vector/Path.Transform.js
index 50171d4ea..f7efd72cc 100644
--- a/loleaflet/src/layer/vector/Path.Transform.js
+++ b/loleaflet/src/layer/vector/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],
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to