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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri May 31 11:46:40 UTC 2019


 loleaflet/src/layer/vector/Path.Transform.js |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 0f5ff84b46021e136722449cf3c21aca04fa962b
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Fri May 31 14:43:18 2019 +0300
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Fri May 31 14:46:11 2019 +0300

    tdf#122542: In the mobile apps, keep aspect ratio when dragging corner handles
    
    I didn't have the clout to chage the behaviour for normal online.
    
    Change-Id: Icf790ceba4b6e23ade2fe1e106a740aeeb38c082

diff --git a/loleaflet/src/layer/vector/Path.Transform.js b/loleaflet/src/layer/vector/Path.Transform.js
index 4899c825a..0d1d8b9e6 100644
--- a/loleaflet/src/layer/vector/Path.Transform.js
+++ b/loleaflet/src/layer/vector/Path.Transform.js
@@ -709,7 +709,8 @@ L.Handler.PathTransform = L.Handler.extend({
 
 		this._handleDragged = true;
 
-		if (this.options.uniformScaling) {
+		if ((window.ThisIsAMobileApp && (this._activeMarker.options.index % 2) == 0) ||
+		    this.options.uniformScaling) {
 			ratioX = originPoint.distanceTo(evt.layerPoint) / this._initialDist;
 			ratioY = ratioX;
 		} else {
commit 946cf671198f713f763a389b42509acaa6980814
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Fri May 31 14:01:47 2019 +0300
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Fri May 31 14:46:03 2019 +0300

    Add an Emacs mode line to set the appropriate js-indent-level
    
    Change-Id: Ie9e554faf269b41f277236e9b74a964456a5f7f8

diff --git a/loleaflet/src/layer/vector/Path.Transform.js b/loleaflet/src/layer/vector/Path.Transform.js
index 0a45e6823..4899c825a 100644
--- a/loleaflet/src/layer/vector/Path.Transform.js
+++ b/loleaflet/src/layer/vector/Path.Transform.js
@@ -1,3 +1,4 @@
+/* -*- js-indent-level: 8 -*- */
 
 
 /**


More information about the Libreoffice-commits mailing list