Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fixes Chrome problem #67

Closed
wants to merge 1 commit into from

2 participants

@sadfuzzy

Fixes Chrome problem and deals with pull #66 and issue #35.

@sadfuzzy sadfuzzy Fixes Chrome problem
Fixes Chrome problem and deals with pull #66 and issue #35.
83d7c04
@tapmodo
Owner

Thanks for that one too!

@tapmodo tapmodo closed this
@tapmodo
Owner

Please see current master branch for a definitive fix for this problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 28, 2012
  1. @sadfuzzy

    Fixes Chrome problem

    sadfuzzy authored
    Fixes Chrome problem and deals with pull #66 and issue #35.
This page is out of date. Refresh to see the latest.
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;
Something went wrong with that request. Please try again.