Skip to content

Commit

Permalink
Make sure that disableOneEvent is onbound after dragging
Browse files Browse the repository at this point in the history
  • Loading branch information
darsain committed Feb 9, 2014
1 parent ac38b24 commit ac2e24e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sly.js
Original file line number Diff line number Diff line change
Expand Up @@ -1441,6 +1441,11 @@
$doc.off(dragging.touch ? dragTouchEvents : dragMouseEvents, dragHandler);
(dragging.slidee ? $slidee : $handle).removeClass(o.draggedClass);

// Make sure that disableOneEvent is not active in next tick.
setTimeout(function () {
dragging.$source.off(clickEvent, disableOneEvent);
});

// Resume ongoing cycle
self.resume(1);

Expand Down

0 comments on commit ac2e24e

Please sign in to comment.