mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-02 22:00:24 +00:00
Don't treat right/middle clicks as taps.
This commit is contained in:
parent
641aa54c11
commit
cdac24a168
1 changed files with 4 additions and 0 deletions
|
|
@ -56,6 +56,10 @@ $.event.special.tap = {
|
|||
|
||||
$this
|
||||
.bind( touchStartEvent, function( event ) {
|
||||
if ( event.which && event.which !== 1 ) {
|
||||
return;
|
||||
}
|
||||
|
||||
var held = false,
|
||||
moved = false,
|
||||
touching = true,
|
||||
|
|
|
|||
Loading…
Reference in a new issue