Permalink
Browse files

Merge pull request #3475 from jasondscott/issue_1524

Issue #1524 - Taphold event fired while scrolling on Blackberry Playbook
  • Loading branch information...
2 parents 5c04294 + a215d4c commit d3911f1209b8fab154483cee03680c2ad195a319 @gseguin gseguin committed Jan 26, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 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" ) );

0 comments on commit d3911f1

Please sign in to comment.