fix: fixed problem related to widget selection

This commit is contained in:
paul
2024-09-09 19:24:43 +05:30
parent 5a9346af0b
commit ac65b1d97b
3 changed files with 33 additions and 27 deletions

View File

@@ -96,10 +96,10 @@ class Canvas extends React.Component {
this.canvasContainerRef.current.addEventListener("mousemove", this.mouseMoveEvent)
this.canvasRef.current.addEventListener("selection:created", () => {
console.log("selected")
this.currentMode = this.modes.DEFAULT
})
// this.canvasRef.current.addEventListener("selection:created", () => {
// console.log("selected")
// this.currentMode = this.modes.DEFAULT
// })
this.canvasContainerRef.current.addEventListener('wheel', (event) => {
this.wheelZoom(event)