Skip to content

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

@noboike

Description

@noboike

When using manualSwap in Svelte, the data-swapy-handle doesn't work properly unless I manually call swapy.update() after the swap ends.

Example:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions