Closed Bug 1811575 Opened 2 years ago Closed 2 years ago

swipe-to-nav icon may reappear shortly after the gesture is cancelled

Categories

(Core :: Panning and Zooming, defect, P2)

defect

Tracking

()

VERIFIED FIXED
111 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox109 --- unaffected
firefox110 --- unaffected
firefox111 --- verified

People

(Reporter: dlrobertson, Assigned: hiro)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Summary

After "cancelling" a swipe to navigate gesture, the icon may reappear shortly along with the icon on the opposite side.

Steps to Reproduce

Steps

  1. Optional: This is much easier to see in dark mode. For example, I use the dark default github theme
  2. Navigate to https://bugzilla.mozilla.org, to get some history
  3. Use the same tab to navigate to https://github.com
  4. Use the same tab to navigate to a third page like https://planet.mozilla.org
  5. Navigate back to the page loaded in step 2
  6. Start a back swipe to navigate gesture, but do not "complete" the gesture. Instead cancel the gesture with a gesture to the opposite side.

Expected Results

The cancel animation runs and when the animation finishes it does not reappear.

Actual Results

The cancel animation for the backwards swipe to navigate gesture runs, and the momentum pan causes the forwards animation to run. When the forwards animation completes, the backwards icon reappears for a second.

Note: this is much easier to see if the "cancel" gesture is done with much gusto.

Flags: needinfo?(hikezoe.birchill)
Attached image s2n-icon-reappear.gif

Set release status flags based on info from the regressing bug 1799563

Component: General → Panning and Zooming
Product: Firefox → Core

Thank you Dan for filing/finding this bug! This happens because we show the icon even if the given aVal == 0. The reason why we didn't hit this issue before bug 1799563 is that probably before bug 1799563 the icon was rendered as opacity: 0 initially so that we hadn't noticed this issue at all.

Assignee: nobody → hikezoe.birchill
Status: NEW → ASSIGNED
Flags: needinfo?(hikezoe.birchill)
See Also: → 1811568
Severity: -- → S3
Priority: -- → P2

Thanks for the quick patch!

Duplicate of this bug: 1811877
Pushed by hikezoe.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c620038ec24f Make sure the swipe-to-navigation icon isn't rendered at zero progress gesture value. r=tnikkel
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
Duplicate of this bug: 1811568
Flags: qe-verify+

Reproducible on a 2023-01-20 Nightly build on macOS 12.
Verified as fixed on Firefox 111.0b5(build ID: 20230223185944) and Nightly 112.0a1(build ID: 20230223172038) on macOS 12, Windows 10, Ubuntu 22.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
See Also: → 1856562
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: