Commit 1b696e02 authored by Timothy Nikkel's avatar Timothy Nikkel
Browse files

Bug 1762872. Increase length of time swipe to nav ui element is visible. r=hiro

I noticed that the current implementation is very short and easy to miss. Chrome is much longer. I tweaked it to what felt pretty good.

Although this seems like only an increase from 0.25s to 0.35s it's actually much longer than that because the cubic-bezier curve (viewable at https://cubic-bezier.com/#.07,.95,0,1 ) goes to zero almost immediately. The new curve (viewable at https://cubic-bezier.com/#.25,.1,.25,1 ) is closer to linear with an ease-in and an ease-out.

Differential Revision: https://phabricator.services.mozilla.com/D142818
parent df3223a2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -712,7 +712,7 @@ var gHistorySwipeAnimation = {
    }
    if (box != null) {
      this._isStoppingAnimation = true;
      box.style.transition = "opacity 0.2s cubic-bezier(.07,.95,0,1)";
      box.style.transition = "opacity 0.35s cubic-bezier(.25,.1,0.25,1)";
      box.addEventListener("transitionend", this, true);
      box.style.opacity = 0;
    } else {