Closed Sveb closed 1 year ago
HowToUse:
mounted() { document.addEventListener("mousemove", this.setAngle) }, destroyed() { document.removeEventListener("mousemove", this.setAngle) }, methods: { setAngle(e) { this.rotateAngle = getAngleFromCursor(this.$el, e) } }, data(){ return{ rotateAngle:"0deg" } }
Already added this in another commit
HowToUse: