From 5fa6adbab02964b79e0f5a22ac6426c88cc7b575 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 17 Jan 2018 05:13:11 +0300 Subject: [PATCH] minor fix... Signed-off-by: Alex A. Naanou --- ui (gen4)/experiments/image-crop-edit.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ui (gen4)/experiments/image-crop-edit.html b/ui (gen4)/experiments/image-crop-edit.html index d30f6da6..e05c11ea 100755 --- a/ui (gen4)/experiments/image-crop-edit.html +++ b/ui (gen4)/experiments/image-crop-edit.html @@ -126,6 +126,7 @@ function setRatio(ratio){ .data('uiResizable')._aspectRatio = ratio if(ratio === false){ + $('#lock-ratio')[0].checked = false return } @@ -161,9 +162,9 @@ function flip(){ function toggleLock(m){ var crop = $('.crop') - var r = crop.resizable("option", "aspectRatio") + var r = m || crop.resizable("option", "aspectRatio") - if(m === true || r === false){ + if(r === false){ var w = crop.width() var h = crop.height() @@ -216,7 +217,7 @@ function toggleLock(m){
 TODO:
-	- rotation and toration handle
+	- rotation and rotation handle
 	- touch
 	- multitouch
 	- center point