RepeatClick: ignore right button down

pull/7822/merge
Leopoldthecoder 2017-10-28 21:42:07 +08:00 committed by 杨奕
parent 85a8ea0ade
commit 0c47e6d308
1 changed files with 2 additions and 1 deletions

View File

@ -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);