Closed Bug 1781962 Opened 3 years ago Closed 3 years ago

swipe-to-navigation is broken on RTL environments

Categories

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

defect

Tracking

()

VERIFIED FIXED
105 Branch
Tracking Status
firefox105 --- verified

People

(Reporter: hiro, Assigned: tnikkel)

References

Details

Attachments

(2 files)

there are two problems as of now;

  1. The swipe-to-nav icon appears at the opposite side
  2. Navigation never happens

The first one will be fixed by D152951, so this bug is for the second one.

As Timothy pointed out, this is a mixup problem where we can go navigation. In fact we have prefs for swipe-to-nav;

pref("browser.gesture.swipe.left", "Browser:BackOrBackDuplicate");
pref("browser.gesture.swipe.right", "Browser:ForwardOrForwardDuplicate");

Apparently these pref name are problematic. left means here a swipe gesture from left to right, right means a gesture from right to left. On RTL environments it should be swapped.

Hmm, how could we properly fix this? I'm not sure.

We could do a little hack that just swaps the actions in RTL browser, I dunno.

Maybe the prefs should have the value Browser:HistoryMoveLeft/Right and then browser-gestureSupport.js can convert these to back/forward taking into account rtl?

This is a bit of a hack, but a hack that works is better than not working.

Depends on D153845

Assignee: nobody → tnikkel
Status: NEW → ASSIGNED
Pushed by tnikkel@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c5b79baf7a93 Attempt to navigate in the correct diection when using swipe to nav in RTL. r=hiro
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
Pushed by hikezoe.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c281f844bed5 A simple test case for swipe-to-navigation on RTL. r=tnikkel

Marked as verified on Win10/Win11 using FF build 105.0a1(20220810212956) on AR and HE localizations.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: