Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix iOS jumping problem on move drag (Issue #35)

  • Loading branch information...
commit ed3cc5c96474f06bb03139f0228cd390eaad438b 1 parent d8d0ed8
@Gladhon Gladhon authored committed
Showing with 7 additions and 0 deletions.
  1. +7 −0 js/jquery.Jcrop.js
View
7 js/jquery.Jcrop.js
@@ -1157,6 +1157,13 @@
//}}}
function trackMove(e) //{{{
{
+ //init 4 ios...
+ var i;
+ i = e.originalEvent.changedTouches[0].clientX;
+ i = e.originalEvent.changedTouches[0].clientY;
+ i = e.originalEvent.changedTouches[0].pageX;
+ i = e.originalEvent.changedTouches[0].pageY;
+
onMove(mouseAbs(e));
return false;
}

3 comments on commit ed3cc5c

@sadfuzzy

Problem in the last Chrome:
Problem

@sadfuzzy

I think, some kind of validation can fix that

@tapmodo
Owner

Thank you for the quick fix! You guys are awesome!

Please sign in to comment.
Something went wrong with that request. Please try again.