fix selection bug on safari

This commit is contained in:
peterkogo
2025-04-30 16:20:23 +02:00
parent 51cf7f4b02
commit adb13e261d
3 changed files with 12 additions and 1 deletions

View File

@@ -82,6 +82,9 @@
nodesFocusable,
edgesFocusable,
disableKeyboardA11y,
noDragClass,
noPanClass,
noWheelClass,
...divAttributes
} = $derived(rest);
/* eslint-enable @typescript-eslint/no-unused-vars */
@@ -97,7 +100,7 @@
bind:clientWidth
style:width={toPxString(width)}
style:height={toPxString(height)}
class={['svelte-flow', 'svelte-flow-container', className, colorMode]}
class={['svelte-flow', 'svelte-flow__container', className, colorMode]}
data-testid="svelte-flow__wrapper"
role="application"
{...divAttributes satisfies OnlyDivAttributes<typeof divAttributes>}

View File

@@ -7,3 +7,7 @@
text-align: center;
position: absolute;
}
.svelte-flow__container {
user-select: none;
}

View File

@@ -11,3 +11,7 @@
color: var(--xy-edge-label-color, var(--xy-edge-label-color-default));
background: var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default));
}
.svelte-flow__container {
user-select: none;
}