Explorar o código

fix: remove leftover code

Konstantinos Kaloutas %!s(int64=3) %!d(string=hai) anos
pai
achega
9adadaae02
Modificáronse 1 ficheiros con 0 adicións e 7 borrados
  1. 0 7
      tldraw/packages/core/src/lib/TLApp/TLApp.ts

+ 0 - 7
tldraw/packages/core/src/lib/TLApp/TLApp.ts

@@ -857,13 +857,6 @@ export class TLApp<
   }
 
   readonly onPointerUp: TLEvents<S, K>['pointer'] = (info, e) => {
-    if (!this.editingShape && e.button === 1 && this.isIn('move')) {
-      this.selectedTool.transition('idle', { exit: true })
-      e.stopPropagation()
-      e.preventDefault()
-      return
-    }
-
     if ('clientX' in e) {
       this.inputs.onPointerUp(
         [...this.viewport.getPagePoint([e.clientX, e.clientY]), 0.5],