Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Editor] Selected item sometimes may make it jump straight to the top/bottom of the list. #432

Open
netux opened this issue Mar 12, 2024 · 3 comments

Comments

@netux
Copy link
Contributor

netux commented Mar 12, 2024

Moving the selected item from the Editor hierarchy makes it jump straight to the bottom. If you select another item, it fixes itself. Tested with device emulation both on and off:

brave_giFbuLqFiK.mp4

I have a feeling it is a bug with sortablejs though 🤔

From: #431 (comment)

@Loottoo
Copy link
Contributor

Loottoo commented Mar 12, 2024

when you begin dragging it, it will default to the bottom. but if you drag it to the top it will want to be placed at the top, and towards the bottom it goes to the bottom.
could it even be a setting in sortablejs? like making selected items stick to the top/bottom, or to sort selected objects only against other selected objects

@Mitcheljager
Copy link
Owner

I can't reproduce that myself in Firefox. It's not a SortableJS option, that's for sure. It looks like a mismatch between the sortable state and the Svelte store.

@Loottoo
Copy link
Contributor

Loottoo commented Mar 12, 2024

i can only reproduce on my phone, or by using device emulation in the inspector

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants