gh-10687: Space switching should ignore system prefs (gh-13079)

This commit is contained in:
mr. m
2026-04-04 14:03:59 +02:00
committed by GitHub
parent db3eea65b7
commit 6ffeecad3a
3 changed files with 31 additions and 2 deletions

View File

@@ -1,8 +1,19 @@
diff --git a/browser/base/content/browser-gestureSupport.js b/browser/base/content/browser-gestureSupport.js
index a28d54bf72c0e6495b9586f220d1859aac794936..66154668b9f85ffbaacea1e8351370659260227b 100644
index a28d54bf72c0e6495b9586f220d1859aac794936..411d7255a68c48643617d77cc279a0a831fdf5c9 100644
--- a/browser/base/content/browser-gestureSupport.js
+++ b/browser/base/content/browser-gestureSupport.js
@@ -832,7 +832,7 @@ var gHistorySwipeAnimation = {
@@ -247,6 +247,10 @@ var gGestureSupport = {
: aEvent.DIRECTION_LEFT;
}
+ if (!gHistorySwipeAnimation._isSupported()) {
+ return;
+ }
+
return canGoBack || canGoForward;
},
@@ -832,7 +836,7 @@ var gHistorySwipeAnimation = {
* @return true if there is a previous page in history, false otherwise.
*/
canGoBack: function HSA_canGoBack() {