     }
     
     override func streamViewContentOffsetDidChange(contentOffset: CGFloat) {
-        if contentOffset <= 0 {
+        if contentOffset <= 0 || contentOffset <= compressionStartPosition {
             compressionRate = 0
+        } else {
+            compressionRate = 1 - (compressionEndPosition - contentOffset) / (compressionEndPosition - compressionStartPosition)
         }
         
-        compressionRate = 1 - (fullCompressionDist - contentOffset) / fullCompressionDist
+        
         if compressionRate < 0 {
             compressionRate = 0
         }

        if compressionRate > 1 {
            compressionRate = 1
        }
        
        blurView.alpha = compressionRate
        blurView.setNeedsLayout()

class JournalBackgroundView: ThemeableBackgroundView {
    
    var compressionRate : CGFloat = 0
    let compressionStartPosition : CGFloat = 100
    let compressionEndPosition : CGFloat = 400
    
    var imageView : UIImageView = UIImageView()
    var blurView : BlurView = DefaultNavBlurView()
