RepeatClick: ignore right button down

This commit is contained in:
Leopoldthecoder
2017-10-28 21:42:07 +08:00
committed by 杨奕
parent 85a8ea0ade
commit 0c47e6d308

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