Skip to content

Commit

Permalink
Proper fix
Browse files Browse the repository at this point in the history
  • Loading branch information
OrlaM committed Jan 9, 2024
1 parent 6954c75 commit c3dd7d1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Client/Frontend/Browser/TabScrollController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ private extension TabScrollingController {
// If this function is used to fully animate the toolbar from hidden to shown, keep the page from scrolling by adjusting contentOffset,
// Otherwise when the toolbar is hidden and a link navigated, showing the toolbar will scroll the page and
// produce a ~50px page jumping effect in response to tap navigations.
contentOffsetBeforeAnimation = scrollView.contentOffset
let isShownFromHidden = headerTopOffset == -topScrollHeight && headerOffset == 0

let animation: () -> Void = {
Expand All @@ -324,7 +323,6 @@ private extension TabScrollingController {
}

if animated {
isAnimatingToolbar = true
UIView.animate(withDuration: duration,
delay: 0,
options: .allowUserInteraction,
Expand Down

0 comments on commit c3dd7d1

Please sign in to comment.