I\'m handling a rotate even on change:
change
If rotate start always at zero you can do:
rotate
export default { data: { rotate = 0 }, methods: { handleRotate(e) { if (this.rotate !== 0) { return; } this.rotate = this.rotate + this.getRotateAngle(e.clientX, e.clientY); } } };