-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$1000] mWeb - Long pressing message shows item selected in Menu at the touch point #23191
Comments
Triggered auto assignment to @lschurr ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Long pressing message shows item selected in Menu at the touch point What is the root cause of that problem?The root cause of the issue is that we're wrapping What changes do you think we should make in order to solve the problem?We need to not use Doing so will also fix the issue that @michaelhaxhiu found here. What alternative solutions did you explore? (Optional)Instead of removing the whole |
This is false, |
Job added to Upwork: https://www.upwork.com/jobs/~011ecfe619c9cb6746 |
Current assignee @lschurr is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.To prevent the long-press menu item from showing a hover effect on touch devices in the React iOS application. What is the root cause of that problem?The root cause of the issue is the Hoverable component's usage, relying on onMouseEnter and onMouseLeave events, which are supported on web but not on mobile browsers. What changes do you think we should make in order to solve the problem?We propose implementing a custom long-press handler for touch devices and conditionally using the Hoverable component only for desktop web. Additionally, we introduce a state variable, isTouchDevice, to determine if the device is touch-enabled. The custom event handlers are set accordingly to handle the long-press behavior without triggering the hover effect on the menu items.
What alternative solutions did you explore? (Optional)We considered removing the Hoverable component on mobile web based on the client's suggestion, but the client did not accept this approach. We also explored replacing onMouseEnter and onMouseLeave with onTouchStart and onTouchEnd events, but the client indicated that onMouseEnter and onMouseLeave are supported on mobile web and that they have a PR to handle hover on devices without hover support. As a result, we believe the proposed solution provides the best compromise between touch and desktop web interactions, allowing the menu to open without triggering the hover effect on both touch and desktop devices. |
Thanks @bernhardoj I believe your PR will affect this, and big chance that will resolve this issue. @lschurr Let's hold this until the PR merged and I'll test this issue again. |
Ah, great. Can you link the PR @mollfpr? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
I can't reproduce it on the latest DEV. mWeb/SafariSimulator.Screen.Recording.-.iPhone.14.Pro.-.2023-07-31.at.17.52.39.mp4mWeb/Chromeuntitled.webm |
Sounds like this one can be closed - I believe we need to pay @DinalJivani for reporting. |
@DinalJivani could you apply to the job here so that we can pay the reporting bonus of $250? https://www.upwork.com/jobs/~011ecfe619c9cb6746 |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Bumped @DinalJivani in Slack. |
Payment summary:
All set. Closing. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
(Long press at the position when any item of menu can be hit)
Expected Result:
It should just open the menu
Actual Result:
It opens the menu with item hovered effect
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.42-19
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
RPReplay_Final1689706235.mp4
Image.from.iOS.1.MOV
Expensify/Expensify Issue URL:
Issue reported by: @DinalJivani
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1689707025746719
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: