Permalink
Browse files

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

  • Loading branch information...
1 parent d8d0ed8 commit ed3cc5c96474f06bb03139f0228cd390eaad438b Gladhon committed with Dec 27, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 js/jquery.Jcrop.js
View
@@ -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

Contributor

sadfuzzy replied Dec 28, 2012

Problem in the last Chrome:
Problem

Contributor

sadfuzzy replied Dec 28, 2012

I think, some kind of validation can fix that

Owner

tapmodo replied Dec 30, 2012

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

Please sign in to comment.