fix selection bug on safari
This commit is contained in:
@@ -82,6 +82,9 @@
|
|||||||
nodesFocusable,
|
nodesFocusable,
|
||||||
edgesFocusable,
|
edgesFocusable,
|
||||||
disableKeyboardA11y,
|
disableKeyboardA11y,
|
||||||
|
noDragClass,
|
||||||
|
noPanClass,
|
||||||
|
noWheelClass,
|
||||||
...divAttributes
|
...divAttributes
|
||||||
} = $derived(rest);
|
} = $derived(rest);
|
||||||
/* eslint-enable @typescript-eslint/no-unused-vars */
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
||||||
@@ -97,7 +100,7 @@
|
|||||||
bind:clientWidth
|
bind:clientWidth
|
||||||
style:width={toPxString(width)}
|
style:width={toPxString(width)}
|
||||||
style:height={toPxString(height)}
|
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"
|
data-testid="svelte-flow__wrapper"
|
||||||
role="application"
|
role="application"
|
||||||
{...divAttributes satisfies OnlyDivAttributes<typeof divAttributes>}
|
{...divAttributes satisfies OnlyDivAttributes<typeof divAttributes>}
|
||||||
|
|||||||
@@ -7,3 +7,7 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.svelte-flow__container {
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|||||||
@@ -11,3 +11,7 @@
|
|||||||
color: var(--xy-edge-label-color, var(--xy-edge-label-color-default));
|
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));
|
background: var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.svelte-flow__container {
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user