Skip to content

Commit 46283b9

Browse files
committed
#9 added widget rotation spec
1 parent bc63320 commit 46283b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/mixins/rotatable.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ exports.onRotateMouseDown = function(ev, idx, _axis, _operation) {
1414
let axis = _axis || 'z'
1515
let operation = _operation || 'rotate'
1616
// only left mouse button or touchstart
17-
if (ev.button !== 0 && ev.type !== 'touchstart') return
17+
if (ev.buttons !== 1 && ev.type !== 'touchstart') return
1818
document.addEventListener('mousemove', this.onRotateMouseMove)
1919
document.addEventListener('touchmove', this.onRotateMouseMove)
2020
document.addEventListener('mouseup', this.onRotateMouseUp)

0 commit comments

Comments
 (0)