         }
     }
     
+    func scrollViewDidEndDragging(scrollView: UIScrollView, willDecelerate decelerate: Bool) {
+        recentlyScrolledTimer = NSTimer.scheduledTimerWithTimeInterval(recentlyScrolledDelay, target: self, selector: "clearRecentlyScrolled", userInfo: nil, repeats: false)
+    }
+
+    func clearRecentlyScrolled(){
+        if( recentlyScrolledTimer != nil ){
+            recentlyScrolledTimer.invalidate()
+            recentlyScrolledTimer = nil
+        }
+        recentlyScrolled = false
+    }
+
     func scrollViewDidEndScrollingAnimation(scrollView: UIScrollView) {
         updateCurrentPage()
     }


let reuseIdentifier = "Cell"
var isScrolling = false
var scrollDirection = ScrollDirection()
var pageWidth: CGFloat!
var pageHeight: CGFloat!

            changePageWith(page: page)
        }
    }

    func changePageWith(href href: String, andAudioMarkID markID: String) {

        // if user recently scrolled, do not change pages or scroll the webview
        if( recentlyScrolled ){ return }

        changePageWith(href: href);
        currentPage.audioMarkID(markID);

    }

    func changePageWith(indexPath indexPath: NSIndexPath) {
