refactor: let the target be passed into dragStart#1050
Merged
daybrush merged 1 commit intodaybrush:masterfrom Nov 26, 2023
Merged
refactor: let the target be passed into dragStart#1050daybrush merged 1 commit intodaybrush:masterfrom
daybrush merged 1 commit intodaybrush:masterfrom
Conversation
The event.target changes in asynchronous calls. It is therefore necessary to save the target at the desired time instance and pass it to dragStart.
Contributor
Author
8bb8293 to
12c45bd
Compare
Contributor
Author
|
I dropped the latest commit, because it is a breaking change and it fails tests. The |
Owner
|
It's good code. I will reflect it. |
Contributor
Author
|
@daybrush |
Owner
|
Maybe release by monday of this week. |
Owner
moveable's new version is released. Check it again. |
Contributor
Author
|
Thank you! |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The event.target changes in asynchronous calls. It is therefore necessary to save the target at the desired time instance and pass it to dragStart.
Fixes: #1032
is an asynchronous call.
e.targetcan, therefore, change. Fixing the target helps.