Skip to content

Commit

Permalink
Merge pull request #617 from /issues/607@v3
Browse files Browse the repository at this point in the history
`pointerpress`/`pointerrelease` event should be fired if only left mouse button is pressed
  • Loading branch information
Vladimir Varankin committed Jul 29, 2014
2 parents 39363ea + ca8eb16 commit ab87aea
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ $.each({
function eventHandler(e) {
var res, origType = e.handleObj.origType;

e.type = spec;
res = $.event.dispatch.apply(this, arguments);
e.type = origType;
if(!e.button) {
e.type = spec;
res = $.event.dispatch.apply(this, arguments);
e.type = origType;
}

return res;
}
Expand Down

0 comments on commit ab87aea

Please sign in to comment.