-
Notifications
You must be signed in to change notification settings - Fork 5
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
WRP-12450: Adapted DropManager for touchscreen devices #740
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #740 +/- ##
===========================================
+ Coverage 85.11% 85.20% +0.09%
===========================================
Files 120 120
Lines 4447 4495 +48
Branches 1223 1235 +12
===========================================
+ Hits 3785 3830 +45
- Misses 517 520 +3
Partials 145 145
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
|
||
fireEvent.touchStart(topSlot, {touches: [current]}); | ||
|
||
document.elementFromPoint = jest.fn(() => { |
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.
function had to be manually declared because jsdom does not support it by default
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.
LGTM. Nice job 👍
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.
LGTM!
Enact-DCO-1.0-Signed-off-by: Daniel Stoian daniel.stoian@lgepartner.com
Checklist
Issue Resolved / Feature Added
DropManager did not work on touchscreen devices
Resolution
Added handling for touchStart, touchMove and touchEnd events
Additional Considerations
There is no drag image on touch events, but the drop area is easily visible, thanks to the already available classnames that are assigned to the drop areas.
Links
WRP-12450
Comments