Skip to content

Commit

Permalink
Fix iOS jumping problem on move drag (Issue #35)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gladhon authored and tapmodo committed Dec 28, 2012
1 parent d8d0ed8 commit ed3cc5c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/jquery.Jcrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

3 comments on commit ed3cc5c

@sadfuzzy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Problem in the last Chrome:
Problem

@sadfuzzy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, some kind of validation can fix that

@tapmodo
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Please sign in to comment.