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

[HOLD for payment 2024-12-05] [$250] Trackpad gestures for navigation history does not work in Newdot #51704

Closed
1 of 8 tasks
m-natarajan opened this issue Oct 29, 2024 · 25 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@m-natarajan
Copy link

m-natarajan commented Oct 29, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.0.55-6
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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
Expensify/Expensify Issue URL:
Issue reported by: @ishpaul777
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1730106001602619

Action Performed:

  1. Open ND on web chrome (Macos), navigate to different pages, to. build navigation history.
  2. Swipe right with 2 fingers on trackpad to navigate back

Expected Result:

It navigate back to previous page like other apps

Actual Result:

Nothing happens

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence
Recording.3168.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021852208286215064025
  • Upwork Job ID: 1852208286215064025
  • Last Price Increase: 2024-11-08
Issue OwnerCurrent Issue Owner: @VictoriaExpensify
@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 29, 2024
Copy link

melvin-bot bot commented Oct 29, 2024

Triggered auto assignment to @VictoriaExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@bernhardoj
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

2-finger swipe gesture doesn't work in web.

What is the root cause of that problem?

The gesture doesn't work because we disable the overscroll-behavior here.

App/web/index.html

Lines 37 to 41 in fe779d9

body {
overflow: hidden;
overscroll-behavior: none;
touch-action: none;
}

This was added in #15100 to specifically not allow the body to be scrollable on iOS safari.

What changes do you think we should make in order to solve the problem?

We should disable the overscroll-behavior (and touch-action if needed) for iOS safari only. First, remove it from here.

App/web/index.html

Lines 37 to 41 in fe779d9

body {
overflow: hidden;
overscroll-behavior: none;
touch-action: none;
}

Then, add a new selector style to disable overscroll-behavior.

body.disable-overscroll {
    overscroll-behavior: none;
}

Last, apply the class to the body if it's mobile safari. (we can apply this in App.tsx)

if (isMobileSafari()) document.body.classList.add('disable-overscroll')

What alternative solutions did you explore? (Optional)

Remove the overscroll-behavior and touch-action hack just like we remove the opacity hack from #15100 in #18266.

@VictoriaExpensify
Copy link
Contributor

Reproduced the issue. I agree this is a problem we should fix

@VictoriaExpensify VictoriaExpensify added the External Added to denote the issue can be worked on by a contributor label Nov 1, 2024
@melvin-bot melvin-bot bot changed the title Trackpad gestures for navigation history does not work in Newdot [$250] Trackpad gestures for navigation history does not work in Newdot Nov 1, 2024
Copy link

melvin-bot bot commented Nov 1, 2024

Job added to Upwork: https://www.upwork.com/jobs/~021852208286215064025

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 1, 2024
Copy link

melvin-bot bot commented Nov 1, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav (External)

Copy link

melvin-bot bot commented Nov 4, 2024

@mananjadhav, @VictoriaExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot melvin-bot bot added the Overdue label Nov 4, 2024
@mananjadhav
Copy link
Collaborator

@bernhardoj Do we have any solution for the scroll behavior if we remove the work around that you've proposed in the alternative solution?

@melvin-bot melvin-bot bot removed the Overdue label Nov 5, 2024
@bernhardoj
Copy link
Contributor

bernhardoj commented Nov 6, 2024

To be honest, I'm not sure what's the problem that the overscroll-behavior trying to solve with the body element. The comment just said that they added it to prevent the body from being scrolled, without showcasing the reproducible issue. So, I'm under the assumption that they just added it just to be safe, so there isn't really an existing issue that overscroll-behavior and touch-action solve. overscroll-behavior docs also don't mention preventing an element from being scrolled. If we want to prevent an element from being scrolled, we should use overflow: hidden instead (which was added in #14005).

image

Also, the issue they are trying to solve isn't caused by the body being scrolled. The root cause of the issue is well explained here.

@bernhardoj
Copy link
Contributor

Here is the comparison when using overflow:hidden on or off and overscroll-behavior:none on or off.

scroll.mp4

Copy link

melvin-bot bot commented Nov 8, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Nov 8, 2024
@mananjadhav
Copy link
Collaborator

I remember having an issue of black screen when scrolling when we worked on the PR. but it looks like it's not needed.

I think @bernhardoj's proposal of removing the scroll behavior altogether should be tried first and then may be related t Mobile Safari.

🎀 👀 🎀 C+ reviewed

Copy link

melvin-bot bot commented Nov 9, 2024

Triggered auto assignment to @Beamanator, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Nov 11, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review and removed Daily KSv2 labels Nov 12, 2024
@melvin-bot melvin-bot bot added the Weekly KSv2 label Nov 12, 2024
@bernhardoj
Copy link
Contributor

PR is ready

cc: @mananjadhav

@muttmuure muttmuure moved this to Bugs and Follow Up Issues in [#whatsnext] #expense Nov 19, 2024
@mananjadhav
Copy link
Collaborator

Asked a question to @Beamanator here

@Beamanator
Copy link
Contributor

Responded!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Nov 28, 2024
@melvin-bot melvin-bot bot changed the title [$250] Trackpad gestures for navigation history does not work in Newdot [HOLD for payment 2024-12-05] [$250] Trackpad gestures for navigation history does not work in Newdot Nov 28, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 28, 2024
Copy link

melvin-bot bot commented Nov 28, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Nov 28, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.67-9 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2024-12-05. 🎊

For reference, here are some details about the assignees on this issue:

  • @mananjadhav requires payment through NewDot Manual Requests
  • @bernhardoj requires payment through NewDot Manual Requests
  • @ishpaul777 requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Nov 28, 2024

@mananjadhav @VictoriaExpensify @mananjadhav The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@garrettmknight garrettmknight moved this from Bugs and Follow Up Issues to Hold for Payment in [#whatsnext] #expense Dec 3, 2024
@mananjadhav
Copy link
Collaborator

mananjadhav commented Dec 4, 2024

BugZero Checklist:

  • [Contributor] Classify the bug:

Source of bug:

  • 1a. Result of the original design (eg. a case wasn't considered)
  • 1b. Mistake during implementation
  • 1c. Backend bug
  • 1z. Other:

Where bug was reported:

  • 2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
  • 2b. Reported on staging (eg. found during regression or PR testing)
  • 2d. Reported on a PR
  • 2z. Other:

Who reported the bug:

  • 3a. Expensify user

  • 3b. Expensify employee

  • 3c. Contributor

  • 3d. QA

  • 3z. Other:

  • [Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

    Link to comment: Fix: iOS autoscroll when <input/> is focused #15100 (comment)

  • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.

    Link to discussion: NA

  • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

  • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

    Link to issue:

Regression Test Proposal

Precondition:

  • Gestures available only on web:

Test:

  1. Navigate to any page
  2. Swipe to left
  3. Verify it navigates back
  4. Swipe to right
  5. Verify it navigates forward

Do we agree 👍 or 👎

@bernhardoj
Copy link
Contributor

Requested in ND.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Dec 5, 2024
Copy link

melvin-bot bot commented Dec 5, 2024

Payment Summary

Upwork Job

BugZero Checklist (@VictoriaExpensify)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1852208286215064025/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@VictoriaExpensify
Copy link
Contributor

Raised issue to add the regression test to test rail - https://github.com/Expensify/Expensify/issues/451044

@VictoriaExpensify
Copy link
Contributor

Payment Summary:
Upwork Job

Reviewer: @mananjadhav owed $250 via NewDot
Reviewer: @bernhardoj owed $250 via NewDot

@github-project-automation github-project-automation bot moved this from Hold for Payment to Done in [#whatsnext] #expense Dec 6, 2024
@JmillsExpensify
Copy link

$250 approved for @bernhardoj

@garrettmknight
Copy link
Contributor

$250 approved for @mananjadhav

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
Status: Done
Development

No branches or pull requests

7 participants