File tree Expand file tree Collapse file tree 4 files changed +7
-3
lines changed
Expand file tree Collapse file tree 4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export default {
1717
1818 let ctx = {
1919 mouseStart ( evt ) {
20- if ( mouse && leftClick ( evt ) ) {
20+ if ( leftClick ( evt ) ) {
2121 document . addEventListener ( 'mousemove' , ctx . mouseAbort )
2222 document . addEventListener ( 'mouseup' , ctx . mouseAbort )
2323 ctx . start ( evt )
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ export default {
9797 direction : getDirection ( binding . modifiers ) ,
9898
9999 mouseStart ( evt ) {
100- if ( mouse && leftClick ( evt ) ) {
100+ if ( leftClick ( evt ) ) {
101101 document . addEventListener ( 'mousemove' , ctx . mouseMove )
102102 document . addEventListener ( 'mouseup' , ctx . mouseEnd )
103103 ctx . start ( evt )
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export default {
5353 direction : getDirection ( binding . modifiers ) ,
5454
5555 mouseStart ( evt ) {
56- if ( mouse && leftClick ( evt ) ) {
56+ if ( leftClick ( evt ) ) {
5757 document . addEventListener ( 'mousemove' , ctx . mouseMove )
5858 document . addEventListener ( 'mouseup' , ctx . mouseEnd )
5959 ctx . start ( evt )
Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ export function leftClick (e = window.event) {
22 return e . button === 0
33}
44
5+ export function middleClick ( e = window . event ) {
6+ return e . button === 1
7+ }
8+
59export function rightClick ( e = window . event ) {
610 return e . button === 2
711}
You can’t perform that action at this time.
0 commit comments