Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit f3baa3a3b8826139052d1b8d4dbc1e4f371af700 1 parent 9c923c6
Jonathan Azoff authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 jquery.overscroll.js
View
5 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);
Please sign in to comment.
Something went wrong with that request. Please try again.