From 0eb83239ddc861506806e68c02c6c8f40996b291 Mon Sep 17 00:00:00 2001 From: Dean Date: Tue, 26 Nov 2024 16:56:43 +0000 Subject: [PATCH] Lint --- .../automation/AutomationBuilder/DraggableCanvas.svelte | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/builder/src/components/automation/AutomationBuilder/DraggableCanvas.svelte b/packages/builder/src/components/automation/AutomationBuilder/DraggableCanvas.svelte index 53de2bec24..f3dcbf9181 100644 --- a/packages/builder/src/components/automation/AutomationBuilder/DraggableCanvas.svelte +++ b/packages/builder/src/components/automation/AutomationBuilder/DraggableCanvas.svelte @@ -44,7 +44,6 @@ w: contentDims.original.w, h: contentDims.original.h, } - dragOffset = [] contentPos.update(state => ({ ...state, x: 0, @@ -135,9 +134,6 @@ // Size of the view port let viewDims = {} - // When dragging the content, maintain the drag start offset - let dragOffset = [] - // Edge around the draggable content let contentDragPadding = 200 @@ -356,7 +352,6 @@ const onViewDragEnd = () => { down = false - dragOffset = [0, 0] } const handleDragDrop = () => { @@ -381,7 +376,6 @@ viewDragOffset = [0, 0] if ($view.dragging) { - dragOffset = [0, 0] view.update(state => ({ ...state, dragging: false, @@ -491,8 +485,6 @@ return } const { x, y } = eleXY(e, viewPort) - - dragOffset = [Math.abs(x - $contentPos.x), Math.abs(y - $contentPos.y)] } const isDraggable = e => {