neodrag icon indicating copy to clipboard operation
neodrag copied to clipboard

Default legacyTranslate setting ignored

Open mildlyfunctional opened this issue 8 months ago β€’ 4 comments

When using @neodrag/svelte and not setting legacyTranslate explicitly to true or false. The dragged element receives css translate property as wel as the transform property.

Image

Using version 2.3.2

Svelte docs state is should be true by default: https://www.neodrag.dev/docs/svelte#legacyTranslate

mildlyfunctional avatar Mar 30 '25 11:03 mildlyfunctional

Please provide a svelte repl link with minimal reproduction

PuruVJ avatar Mar 30 '25 11:03 PuruVJ

Ok not as extreme as in my code, but here is the example.

https://svelte.dev/playground/d67b6120c5ea4f108a205847f400db68?version=5.25.3

(using tailwind, but somehow the option is disabled when sharing the link)

mildlyfunctional avatar Mar 30 '25 12:03 mildlyfunctional

I just visited your site and saw that version 3 is coming. Not sure if it’s still worth pursuing this πŸ™‚

mildlyfunctional avatar Mar 30 '25 12:03 mildlyfunctional

Good catch!! I'll fix this bug.

Re v3: That'll take a while, so shipping bug fixes now to v2 as they happen

PuruVJ avatar Mar 30 '25 18:03 PuruVJ