Skip to content

Commit

Permalink
Merge pull request #651 from yelinaung/master
Browse files Browse the repository at this point in the history
Changed jquery.event.drag-2.2 file encoding to UTF-8
  • Loading branch information
mleibman committed Jul 12, 2013
2 parents 2b1b8b5 + 497f612 commit f171ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jquery.event.drag-2.2.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ drag = $special.drag = {
case !dd.dragging && 'touchmove':
event.preventDefault();
case !dd.dragging && 'mousemove':
// drag tolerance, x² + y² = distance²
// drag tolerance, x + y = distance
if ( Math.pow( event.pageX-dd.pageX, 2 ) + Math.pow( event.pageY-dd.pageY, 2 ) < Math.pow( dd.distance, 2 ) )
break; // distance tolerance not reached
event.target = dd.target; // force target from "mousedown" event (fix distance issue)
Expand Down

0 comments on commit f171ce2

Please sign in to comment.