Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Issue #1524 - Taphold event fired while scrolling on Blackberry Playbook

Cause: The vmousecancel event was not being fired for 'this'.

How Fixed: Bound vmousecancel event to document instead of 'this'.

How Tested: Ran the example provided with the issue
(http://jsbin.com/oruhu4/) with this change on BlackBerry Playbook v2.0
and iPad iOS 5.0.1
  • Loading branch information...
commit 92cf8d62c4badaa3a9047d6074d623081ffba307 1 parent 7f2e504
@jasondscott jasondscott authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 js/jquery.mobile.event.js
View
8 js/jquery.mobile.event.js
@@ -92,8 +92,8 @@ $.event.special.tap = {
clearTapTimer();
$this.unbind( "vclick", clickHandler )
- .unbind( "vmouseup", clearTapTimer )
- .unbind( "vmousecancel", clearTapHandlers );
+ .unbind( "vmouseup", clearTapTimer );
+ $(document).unbind("vmousecancel", clearTapHandlers);
}
function clickHandler(event) {
@@ -106,9 +106,9 @@ $.event.special.tap = {
}
}
- $this.bind( "vmousecancel", clearTapHandlers )
- .bind( "vmouseup", clearTapTimer )
+ $this.bind( "vmouseup", clearTapTimer )
.bind( "vclick", clickHandler );
+ $(document).bind("vmousecancel", clearTapHandlers);
timer = setTimeout(function() {
triggerCustomEvent( thisObject, "taphold", $.Event( "taphold" ) );
Please sign in to comment.
Something went wrong with that request. Please try again.