Permalink
Browse files

Don't prevent default until after checking cancel on. Closes #42

  • Loading branch information...
1 parent 9c923c6 commit f3baa3a3b8826139052d1b8d4dbc1e4f371af700 Jonathan Azoff committed Feb 19, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 jquery.overscroll.js
@@ -344,8 +344,6 @@
// starts the drag operation and binds the mouse move handler
start = function (event) {
- event.preventDefault();
-
var data = event.data,
target = data.target,
start = data.start = $(event.target),
@@ -355,7 +353,8 @@
flags.drifting = false;
// only start drag if the user has not explictly banned it.
- if (!start.is(data.options.cancelOn)) {
+ if (!start.is(data.options.cancelOn)) {
+ event.preventDefault();
target.css('cursor', compat.cursorGrabbing);
flags.dragging = flags.dragged = false;
target.on(events.drag, data, drag);

0 comments on commit f3baa3a

Please sign in to comment.