-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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 issue whereby tooltips loaded dynamically while moving the map were never shown. #8672
Merged
Falke-Design
merged 19 commits into
Leaflet:main
from
theGOTOguy:tooltip-loaded-while-dragging
May 18, 2023
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
7da8b9e
Fix issue whereby tooltips loaded dynamically while moving/dragging w…
theGOTOguy 3478ff1
Use chaining to simplify check whether map is dragging and moving.
theGOTOguy 5489fd9
Use more concise function in tests.
theGOTOguy 40034ad
Fix issue whereby tooltips loaded dynamically while moving/dragging w…
theGOTOguy b0ba81a
Use more concise function in tests.
theGOTOguy 4eb38ef
Fix linter error.
theGOTOguy ee8a033
Fix issue whereby tooltips loaded dynamically while moving/dragging w…
theGOTOguy 33f2e91
Fix issue whereby tooltips loaded dynamically while moving/dragging w…
theGOTOguy e996439
Fix issue whereby tooltips loaded dynamically while moving/dragging w…
theGOTOguy f325e02
Fix issue whereby tooltips loaded dynamically while moving/dragging w…
theGOTOguy 0c834bd
Use more concise function in tests.
theGOTOguy 18140b7
Fix issue whereby test was added multiple times during merges.
theGOTOguy fa40d46
Remove test "don't opens the tooltip marker moseover while dragging m…
theGOTOguy 47f4f3d
Fix attempt to open Tooltip after dragging
Falke-Design 5c1b7da
Merge branch 'main' into tooltip-loaded-while-dragging
theGOTOguy 0da6694
Removes some additional nesting.
theGOTOguy 7af5b1f
Linter fixes.
theGOTOguy 2f22358
Merge branch 'main' into tooltip-loaded-while-dragging
Falke-Design d907ba4
Update test
Falke-Design File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mourner @jonkoops @IvanSanchez do you see any problems with setting the flags to
false
before fireing the event?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like the only way this would matter would be if someone was looking at
_moving
or_dragging
during the handling of adragend
event. We're not doing it internally to Leaflet, but it's possible that someone who depends on us might. To do so would be inadvisable, because there would be a race between the event firing and_moving
and_dragging
being updated after the event is fired. Maybe mark this as a breaking API change in case someone depends on the state of_moving
or_dragging
in an event triggered bydragend
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no issue with that, this is internal state so folks should not be relying on it anyways.