     let animations = {
       self.scrollWithDelta(self.fullNavbarHeight, ignoreDelay: true)
       visibleViewController.view.setNeedsLayout()
-      if self.navigationBar.isTranslucent {
+      if !self.isTopViewControllerExtendsUnderNavigationBar {
         let currentOffset = self.contentOffset
         self.scrollView()?.contentOffset = CGPoint(x: currentOffset.x, y: currentOffset.y + self.navbarHeight)
       }

  }

  private func restoreContentOffset(_ delta: CGFloat) {
    if navigationBar.isTranslucent || delta == 0 {
      return
    }


      self.lastContentOffset = 0
      self.scrollWithDelta(-self.fullNavbarHeight, ignoreDelay: true)
      visibleViewController.view.setNeedsLayout()
      if !self.isTopViewControllerExtendsUnderNavigationBar {
        let currentOffset = self.contentOffset
        self.scrollView()?.contentOffset = CGPoint(x: currentOffset.x, y: currentOffset.y - self.navbarHeight)
      }
