Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

Commit

Permalink
fix mobile chrome drop animation
Browse files Browse the repository at this point in the history
Refs #40
  • Loading branch information
rkusa committed Jun 11, 2015
1 parent 35165a4 commit b84439a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions touch-dnd.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@
var rect = el.getBoundingClientRect()
this.origin.x = rect.left + (window.scrollX || window.pageXOffset) - this.origin.offset.x
this.origin.y = rect.top + (window.scrollY || window.pageYOffset) - this.origin.offset.y
var pageX = getTouchPageX(e)
, pageY = getTouchPageY(e)
var pageX = getTouchPageX(e) || this.lastX
, pageY = getTouchPageY(e) || this.lastY
, deltaX = pageX - this.origin.x
, deltaY = pageY - this.origin.y
translate(el, deltaX, deltaY)
Expand Down

0 comments on commit b84439a

Please sign in to comment.