-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
debounce rounding position on Marker #11167
Merged
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
0ae8f5e
debounce rounding position on Marker
malekeym 309e14a
change _update Marker parameters to accepts delaySnap as a boolean
malekeym f0dd607
test(Marker): add Marker test for rounding _pos
malekeym dfb4113
test(Marker): add unit test for move and setLngLat
malekeym a74e3a9
fix: function Refs in move events
malekeym b2c7c41
fix(Marker): ignore _update when addTo called when map not changed
malekeym 1d0dab6
fix(Marker): check test for moveend
malekeym 4c2b83c
fix(Marker): moveend should happend Immediatly
malekeym 1fc674a
fix(Marker): call Marker _update method on move event
malekeym 4c08403
fix(Marker): use arrow function to access to Marker this
malekeym 16fa227
Merge branch 'mapbox:main' into debounce-round-position
malekeym dc792c3
refactor: remove DOM.setTransform
malekeym 9fefbd3
refactor(marker): split updateTransform to method
malekeym 1c1281c
refactor: seperate methods
malekeym 7895068
refactor(Marker): remove pos argument
malekeym 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
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.
Nit: I wonder if we could deduplicate this long line of code that's duplicated below, but not a big deal.
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.
Yes, but I don't have any idea, do you have?
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.
Maybe seperate that line into something like:
If you move the pitch and location calculating code into this function, then it can live in the marker's scope.
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 separate some methods, I appreciate reviewing changes and giving your feedback