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

Add a ~setterId for map cursor to detect unintentional reseting #2800

Merged
merged 1 commit into from
Mar 3, 2025

Conversation

ZakarFin
Copy link
Member

Resolves an issue where for example both findbycoordinates and markersplugin try reseting the map cursor to default after they are closed. However there's a race condition where one can set the crosshair before the other resets it back to default. This handles the case so when something sets a cursor, it needs to be the one reseting it as well. Other functionalities can still change the cursor if they changed it to non-default.

Also removed the jQuery part of setting the style.

@ZakarFin ZakarFin added this to the 3.0.0 milestone Feb 28, 2025
@ZakarFin ZakarFin merged commit deceabc into oskariorg:develop Mar 3, 2025
3 checks passed
@ZakarFin ZakarFin deleted the cursor-style branch March 3, 2025 11:32
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

Successfully merging this pull request may close these issues.

1 participant