We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df95baf commit e8e271aCopy full SHA for e8e271a
packages/scrollbar/src/bar.js
@@ -40,6 +40,10 @@ export default {
40
41
methods: {
42
clickThumbHandler(e) {
43
+ // prevent click event of right button
44
+ if (e.ctrlKey || e.button === 2) {
45
+ return;
46
+ }
47
this.startDrag(e);
48
this[this.bar.axis] = (e.currentTarget[this.bar.offset] - (e[this.bar.client] - e.currentTarget.getBoundingClientRect()[this.bar.direction]));
49
},
0 commit comments