This commit is contained in:
Dean 2024-10-24 11:17:19 +01:00
parent f159a51da3
commit 7f1184bb40
4 changed files with 10 additions and 13 deletions

View File

@ -1,7 +1,12 @@
<script>
import { onDestroy, tick } from "svelte"
import { writable } from "svelte/store"
import { setContext, onMount, createEventDispatcher } from "svelte"
import {
setContext,
onMount,
createEventDispatcher,
onDestroy,
tick,
} from "svelte"
import { Utils } from "@budibase/frontend-core"
import { selectedAutomation, automationStore } from "stores/builder"
@ -72,7 +77,6 @@
dragging: false,
moveStep: null,
dragSpot: null,
dragging: false,
scale: 1,
dropzones: {},
//focus - node to center on?
@ -220,7 +224,7 @@
}
}
const onViewDragEnd = e => {
const onViewDragEnd = () => {
down = false
dragOffset = []
}
@ -356,7 +360,7 @@
on:mousemove={Utils.domDebounce(onMouseMove)}
>
<div
class="view"
class="draggable-view"
bind:this={viewPort}
on:wheel={Utils.domDebounce(onViewScroll)}
on:mousemove={Utils.domDebounce(onViewMouseMove)}
@ -390,7 +394,6 @@
dragging: false,
moveStep: null,
dragSpot: null,
dragging: false,
dropzones: {},
}))
}}
@ -406,7 +409,7 @@
width: 100%;
height: 100%;
}
.view {
.draggable-view {
width: 100%;
height: 100%;
overflow: hidden;

View File

@ -28,7 +28,6 @@
})
</script>
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div
id={`dz-${dzid}`}
bind:this={dropEle}

View File

@ -37,7 +37,6 @@
const view = getContext("view")
const pos = getContext("viewPos")
const contentPos = getContext("contentPos")
let webhookModal
let open = true

View File

@ -991,10 +991,6 @@
white-space: unset;
}
.field-width {
width: 320px;
}
.step-fields {
display: flex;
flex-direction: column;