Closed Bug 1776795 Opened 3 years ago Closed 3 years ago

Move swipe-to-nav icon in response to the gesture to make it more noticeable on Windows

Categories

(Core :: Panning and Zooming, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
105 Branch
Tracking Status
firefox105 --- fixed

People

(Reporter: hiro, Assigned: hiro)

References

(Blocks 1 open bug)

Details

Attachments

(6 files)

We haven't yet received any feedback from UX side, but we'd at least want to make the icon more noticeable just like Safari and Chrome do.

Attached image history-swipe-arrow.svg

Attaching svg file will be a new icon. The reason why we need this new one is, the original one is a half circle, it would look odd the half circle is moving, it would be better a full circle.

The differences from the original one are;

  1. a half circle -> a full circle
  2. an arrow icon inside the circle got bigger

It turned out Chrome on MacOSX has a different swipe-to-nav gesture icon on Windows. The shape looks similar to us, a half circle, it actually moves in response to gestures, but it's quite small amount, it never makes the circle visible as a full circle. I am going to restrict this change only on Windows.

Summary: Move swipe-to-nav icon in response to the gesture to make it more noticeable → Move swipe-to-nav icon in response to the gesture to make it more noticeable on Windows

I just pointed out Chrome's animation on mac using a half-circle as comparative information. I think we should also have movement on mac, whether we keep the half-circle or use a full circle on mac.

Attachment #9283144 - Attachment description: WIP: Bug 1776795 - Move the swipe-to-nav icon in response to the swipe gestures. → WIP: Bug 1776795 - Move the swipe-to-nav icon in response to the swipe gestures on Windows.

(In reply to Timothy Nikkel (:tnikkel) from comment #4)

I just pointed out Chrome's animation on mac using a half-circle as comparative information. I think we should also have movement on mac, whether we keep the half-circle or use a full circle on mac.

Thanks! I didn't notice your comment on the phab. Yeah, I suppose we probably end up having platform dependent behaviors. I'd start with Windows specific one in this bug.

Assignee: nobody → hikezoe.birchill
Attachment #9283144 - Attachment description: WIP: Bug 1776795 - Move the swipe-to-nav icon in response to the swipe gestures on Windows. → Bug 1776795 - Move the swipe-to-nav icon in response to the swipe gestures on Windows. r?tnikkel
Status: NEW → ASSIGNED
Attachment #9283144 - Attachment description: Bug 1776795 - Move the swipe-to-nav icon in response to the swipe gestures on Windows. r?tnikkel → WIP: Bug 1776795 - Move the swipe-to-nav icon in response to the swipe gestures on Windows. r?tnikkel
Attachment #9283144 - Attachment description: WIP: Bug 1776795 - Move the swipe-to-nav icon in response to the swipe gestures on Windows. r?tnikkel → Bug 1776795 - Move the swipe-to-nav icon in response to the swipe gestures on Windows. r?tnikkel

This is a video showing what it looks like with Hiro's patch with a couple tweaks so that it also applies to macos in addition to Windows (it's easier for me to produce a screen capture on macOS).

Thank you, Timothy.

I did also record a screen capture with an additional change based on D150433. The additional change is that, as Timothy suggested in an APZ team meeting, changing icon colors when the icon reached to a point where the navigation will be triggered. I did it by using -moz-context-properties, it works as expected.

That's said, the additional change isn't perfect as of now, the icon color isn't going back to normal even after the user's fingers swipes back a bit, at that point the navigation won't happen.

Anyways, this is just a proof-of-concept, we can do this kind of more fancy visual feedback in a future bug. I am supposing we could make the color change as blinking animation.

I am going to post the additional change here in this bug for the record.

Here is the additional change.

Attachment #9287347 - Attachment description: WIP: Bug 1776795 - Fix the swipe-to-nav icon position on RTL environments. → Bug 1776795 - Fix the swipe-to-nav icon position on RTL environments. r?#desktop-theme-reviewers!,tnikkel!
See Also: → 1781962
Pushed by hikezoe.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/344336b54939 Fix the swipe-to-nav icon position on RTL environments. r=desktop-theme-reviewers,tnikkel,Itiel https://hg.mozilla.org/integration/autoland/rev/7bed4509ae7c Move the swipe-to-nav icon in response to the swipe gestures on Windows. r=tnikkel,desktop-theme-reviewers,sfoster

Backed out for causing bc failures on browser_test_swipe_gesture.js

Backout link

Push with failures

Failure log

Flags: needinfo?(hikezoe.birchill)

The failed test needs to set browser.swipe.navigation-icon-move-distance=0.

Flags: needinfo?(hikezoe.birchill)
Severity: -- → S3
Priority: -- → P3
Pushed by hikezoe.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/573e1fde234c Fix the swipe-to-nav icon position on RTL environments. r=desktop-theme-reviewers,tnikkel,Itiel https://hg.mozilla.org/integration/autoland/rev/065a34bf58c2 Move the swipe-to-nav icon in response to the swipe gestures on Windows. r=tnikkel,desktop-theme-reviewers,sfoster
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
Regressions: 1783411
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: