Skip to content

Commit

Permalink
RepeatClick: ignore right button down
Browse files Browse the repository at this point in the history
  • Loading branch information
Leopoldthecoder committed Oct 29, 2017
1 parent 85a8ea0 commit 0c47e6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/directives/repeat-click.js
Expand Up @@ -13,7 +13,8 @@ export default {
interval = null;
};

on(el, 'mousedown', () => {
on(el, 'mousedown', (e) => {
if (e.button !== 0) return;
startTime = new Date();
once(document, 'mouseup', clear);
clearInterval(interval);
Expand Down

0 comments on commit 0c47e6d

Please sign in to comment.