Update nav bar while scrolling in thumbnail view
authorMichael Ang <mang@archive.org>
Fri, 15 Oct 2010 01:39:57 +0000 (01:39 +0000)
committerMichael Ang <mang@archive.org>
Fri, 15 Oct 2010 01:39:57 +0000 (01:39 +0000)
BookReader/BookReader.js

index 463c042..7178d30 100644 (file)
@@ -707,8 +707,10 @@ BookReader.prototype.drawLeafsThumbnail = function( seekIndex ) {
     // console.log('current ' + currentIndex);
     // console.log('least visible ' + leastVisible + ' most visible ' + mostVisible);
     if (currentIndex < leastVisible) {
+        this.willChangeToIndex(leastVisible);
         this.setCurrentIndex(leastVisible);
     } else if (currentIndex > mostVisible) {
+        this.willChangeToIndex(mostVisible);
         this.setCurrentIndex(mostVisible);
     }