Commit 0c47e6d3 authored by Leopoldthecoder's avatar Leopoldthecoder Committed by 杨奕

RepeatClick: ignore right button down

parent 85a8ea0a
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment