Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes Chrome problem

Fixes Chrome problem and deals with pull #66 and issue #35.
  • Loading branch information...
commit 83d7c04639e427377eee029ec0d9473e9d57cf9e 1 parent f927734
@sadfuzzy sadfuzzy authored
Showing with 7 additions and 5 deletions.
  1. +7 −5 js/jquery.Jcrop.js
View
12 js/jquery.Jcrop.js
@@ -1158,11 +1158,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;
+ if (e.originalEvent && e.originalEvent.changedTouches) {
+ 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;
Please sign in to comment.
Something went wrong with that request. Please try again.