Fix CSS syntax and improve force calculation for workspace swiping

This commit is contained in:
mr. M
2025-02-17 12:25:12 +01:00
parent c855ea5838
commit cbbae1e26a
2 changed files with 2 additions and 2 deletions

View File

@@ -142,7 +142,7 @@
visibility: collapse;
}
#urlbar[open] :is(#tracking-protection-icon-container, .urlbar-page-action, .identity-box-button):not([hidden="true"]),
#urlbar[open] :is(#tracking-protection-icon-container, .urlbar-page-action, .identity-box-button):not([hidden='true']),
#urlbar:hover #identity-icon-box {
opacity: 1;
margin-inline-end: 0 !important;

View File

@@ -397,7 +397,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
const stripWidth = document.getElementById('tabbrowser-tabs').scrollWidth;
let translateX = this._swipeState.lastDelta + delta;
// Add a force multiplier as we are translating the strip depending on how close to the edge we are
let forceMultiplier = Math.min(1, 1 - (Math.abs(translateX) / (stripWidth * 1.5)));
let forceMultiplier = Math.min(1, 1 - Math.abs(translateX) / (stripWidth * 1.5));
if (forceMultiplier > 0.5) {
translateX *= forceMultiplier;
this._swipeState.lastDelta = delta;