Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixes Chrome problem #67

Closed
wants to merge 1 commit into from

2 participants

Denis Savitskiy Kelly Hallman
Denis Savitskiy

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

Denis Savitskiy sadfuzzy Fixes Chrome problem
Fixes Chrome problem and deals with pull #66 and issue #35.
83d7c04
Kelly Hallman
Owner

Thanks for that one too!

Kelly Hallman tapmodo closed this
Kelly Hallman
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. Denis Savitskiy

    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
12 js/jquery.Jcrop.js
View
@@ -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.