         verticalTranslation = 0
         header?.layer.transform = CATransform3DIdentity
         footer?.layer.transform = CATransform3DIdentity
-
-        
     }
     
     func scrollViewWillBeginDragging(scrollView: UIScrollView) {

                self.urlBar?.updateAlphaForSubviews(alpha)
                self.header?.layoutIfNeeded()
                self.footer?.layoutIfNeeded()
            }

            // Reset the scroll direction now that it is handled
            scrollDirection = .None

            let requiredOffsetForHide = self.contentOffset.y - UIConstants.ToolbarHeight
            if !isShow{
                scrollView?.contentOffset.y = requiredOffsetForHide
            }

            let completionWrapper: Bool -> Void = { finished in
                completion?(finished: finished)
                if !isShow {
                    self.scrollView?.contentOffset.y = requiredOffsetForHide
                }
            }

            if animated {


    func animateToolbarsWithOffsets(animated animated: Bool, duration: NSTimeInterval, headerOffset: CGFloat,
        footerOffset: CGFloat, alpha: CGFloat, completion: ((finished: Bool) -> Void)?) {

            let animation: () -> Void = {
                self.headerTopOffset = headerOffset
