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

WRP-12450: Adapted DropManager for touchscreen devices #740

Merged
merged 9 commits into from
Apr 27, 2023

Conversation

daniel-stoian-lgp
Copy link
Contributor

@daniel-stoian-lgp daniel-stoian-lgp commented Apr 7, 2023

Enact-DCO-1.0-Signed-off-by: Daniel Stoian daniel.stoian@lgepartner.com

Checklist

  • I have read and understand the contribution guide
  • A CHANGELOG entry is included
  • At least one test case is included for this feature or bug fix
  • Documentation was added or is not needed
  • Documentation was verified or is not changed
  • UI test was passed or is not needed
  • Screenshot test was verified or is not needed
  • This is an API breaking change

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

@codecov
Copy link

codecov bot commented Apr 7, 2023

Codecov Report

Patch coverage: 87.50% and project coverage change: +0.09 🎉

Comparison is base (8f06422) 85.11% compared to head (8df317e) 85.20%.

❗ Current head 8df317e differs from pull request most recent head 331b43d. Consider uploading reports for the commit 331b43d to get more accurate results

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              
Impacted Files Coverage Δ
DropManager/DropManager.js 69.48% <87.50%> (+10.98%) ⬆️

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

@daniel-stoian-lgp daniel-stoian-lgp changed the title WRP-12450: Adapted DropManager for touchscreen WRP-12450: Adapted DropManager for touchscreen devices Apr 7, 2023

fireEvent.touchStart(topSlot, {touches: [current]});

document.elementFromPoint = jest.fn(() => {
Copy link
Contributor Author

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

Copy link
Contributor

@adrian-cocoara-lgp adrian-cocoara-lgp left a comment

Choose a reason for hiding this comment

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

LGTM. Nice job 👍

Copy link
Contributor

@stanca-pop-lgp stanca-pop-lgp left a comment

Choose a reason for hiding this comment

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

LGTM!

@0x64 0x64 merged commit d3aac7c into develop Apr 27, 2023
@0x64 0x64 deleted the feature/WRP-12450 branch April 27, 2023 07:23
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.

4 participants