         }
     }
     
+    func scrollViewDidEndDragging(scrollView: UIScrollView, willDecelerate decelerate: Bool) {
+        if !decelerate {
+            currentOffsetX = scrollView.contentOffset.x
+        }
+    }
+    
+    func scrollViewDidEndDecelerating(scrollView: UIScrollView) {
+        currentOffsetX = scrollView.contentOffset.x
+    }
+    
 }

    private static var textColor: UIColor = Default.TextColor.colorWithAlphaComponent(Default.Opacity)
    
    private func configureColorsWithOpacity(opacity: CGFloat) {
        scrollView.backgroundColor = backColor.colorWithAlphaComponent(opacity)
        
        let textOpacity = max(0.3, opacity)
        AEConsoleView.textColor = textColor.colorWithAlphaComponent(textOpacity)

    
    // MARK: - Properties
    
    private var forwardTouches = false
    private var autoFollow = true
    
    private var maxLineWidth: CGFloat = 0.0
    private var currentOffsetX = -Default.MagicNumber
    
    private var lines = [String]() {
        didSet {
