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 inaccurate position with custom drag layers #2818

Merged
merged 2 commits into from Nov 13, 2020
Merged

Fix inaccurate position with custom drag layers #2818

merged 2 commits into from Nov 13, 2020

Conversation

efleury1
Copy link
Contributor

Fixes #2638

Fixes an issue where the dragenter gets fired with no target, resulting in a wrong position for the drag preview. The fix had already been patched for FF only, but turned out to be reproducible on Chrome and Edge as well.

Copy link
Member

@darthtrevino darthtrevino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks alright to me. I'll test it later locally

@darthtrevino darthtrevino self-assigned this Nov 13, 2020
@codecov
Copy link

codecov bot commented Nov 13, 2020

Codecov Report

Merging #2818 (7f96367) into main (c94105d) will increase coverage by 0.02%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2818      +/-   ##
==========================================
+ Coverage   52.47%   52.49%   +0.02%     
==========================================
  Files          87       87              
  Lines        2544     2543       -1     
  Branches      472      473       +1     
==========================================
  Hits         1335     1335              
+ Misses       1209     1208       -1     
Impacted Files Coverage Δ
packages/backend-html5/src/HTML5BackendImpl.ts 22.14% <0.00%> (-0.19%) ⬇️
packages/backend-html5/src/OptionsReader.ts 56.25% <0.00%> (-5.29%) ⬇️
packages/backend-touch/src/OptionsReader.ts 48.14% <0.00%> (-3.86%) ⬇️
packages/backend-touch/src/TouchBackendImpl.ts 17.49% <0.00%> (+0.26%) ⬆️

@darthtrevino darthtrevino merged commit 9934fe5 into react-dnd:main Nov 13, 2020
darthtrevino added a commit that referenced this pull request Feb 3, 2022
* fix: correct issue with `dragenter` being fired with no actual target

* chore: cut semver document

Co-authored-by: Eric Fleury <fleury@capintel.ca>
Co-authored-by: Chris Trevino <chtrevin@microsoft.com>
@efleury1 efleury1 deleted the bugfix/#2638 branch November 11, 2022 18:40
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.

Monitor.getSourceClientOffset() returns inaccurate position when using Custom Drag Layer
2 participants