ITADN

data-swapy-handle misbehaves when manualSwap is enabled in Svelte

#144Opennoboike 创建于 2025-08-11
N
noboikecommented
When using `manualSwap` in Svelte, the `data-swapy-handle` doesn't work properly unless I manually call `swapy.update()` after the swap ends. Example: ```js swapy.onSwapEnd(() => { swapy?.update(); }); ``` With this, the handle works as expected. However, there's a new problem: * If I resize the window and the slot expands to full width, its width freezes and does not adjust dynamically. ### Expected behavior: The handle should work with `manualSwap` without requiring a manual `swapy.update()`, and resizing the window should still allow elements to adjust their width.
1 条评论