         }
         
         func scrollViewDidEndDragging(_ scrollView: UIScrollView, willDecelerate decelerate: Bool) {
-            if autoHidden == true && decelerate == false && hiddenTimeInterval == 0 {
-                timer(_hiddenTimeInterval)
+            if autoHidden == true && decelerate == false && hiddenTimer == nil {
+                timer(hiddenTimeInterval)
             }
         }
         

        
        private func resetTimerIfNeeded() {
            if autoHidden == true {
                timer(_hiddenTimeInterval)
            }
        }
    }

        fileprivate var contentView: UIView?
        fileprivate var autoHidden: Bool = false
        fileprivate var hiddenTimeInterval: TimeInterval = 0
        fileprivate var contentHeight: CGFloat {
            return noticeView.bounds.height
        }
