Skip to content

Commit

Permalink
#9 added widget rotation spec
Browse files Browse the repository at this point in the history
  • Loading branch information
abbr committed Oct 14, 2017
1 parent bc63320 commit 73c59c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/mixins/rotatable.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exports.onRotateMouseDown = function(ev, idx, _axis, _operation) {
let axis = _axis || 'z'
let operation = _operation || 'rotate'
// only left mouse button or touchstart
if (ev.button !== 0 && ev.type !== 'touchstart') return
if (ev.buttons !== 1 && ev.type !== 'touchstart') return
document.addEventListener('mousemove', this.onRotateMouseMove)
document.addEventListener('touchmove', this.onRotateMouseMove)
document.addEventListener('mouseup', this.onRotateMouseUp)
Expand Down

0 comments on commit 73c59c1

Please sign in to comment.