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

Fix sorting on mobile and with hidden layers #344

Merged
merged 38 commits into from
Nov 29, 2023

Conversation

A-Behairi
Copy link
Collaborator

@A-Behairi A-Behairi commented Oct 19, 2023

This PR introduces three new things:

  • checking if a change:length listener was already set on a collection before adding/replacing a new one
  • throttling the reaction to change:length
  • a new and more robust remove/insert logic looping through layers

While the first two change improve mobile performance, the third one was necessary for improved stability when dealing with hidden or optional layers.

Fixes #302
Fixes #455

@silvester-pari silvester-pari changed the title fix: sorting on mobile Fix sorting on mobile and with hidden layers Nov 29, 2023
@silvester-pari silvester-pari merged commit 82e12b3 into main Nov 29, 2023
3 checks passed
@silvester-pari silvester-pari deleted the layercontrol/fix/mobile-sorting branch November 29, 2023 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drag and drop ordering not working properly in LayerControl. Sorting only works once
2 participants