mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
minor fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
aab21de923
commit
5fa6adbab0
@ -126,6 +126,7 @@ function setRatio(ratio){
|
|||||||
.data('uiResizable')._aspectRatio = ratio
|
.data('uiResizable')._aspectRatio = ratio
|
||||||
|
|
||||||
if(ratio === false){
|
if(ratio === false){
|
||||||
|
$('#lock-ratio')[0].checked = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -161,9 +162,9 @@ function flip(){
|
|||||||
|
|
||||||
function toggleLock(m){
|
function toggleLock(m){
|
||||||
var crop = $('.crop')
|
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 w = crop.width()
|
||||||
var h = crop.height()
|
var h = crop.height()
|
||||||
|
|
||||||
@ -216,7 +217,7 @@ function toggleLock(m){
|
|||||||
<br>
|
<br>
|
||||||
<pre>
|
<pre>
|
||||||
TODO:
|
TODO:
|
||||||
- rotation and toration handle
|
- rotation and rotation handle
|
||||||
- touch
|
- touch
|
||||||
- multitouch
|
- multitouch
|
||||||
- center point
|
- center point
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user