projects
/
bookreader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
70f5cd3
)
Update nav bar while scrolling in thumbnail view
author
Michael Ang
<mang@archive.org>
Fri, 15 Oct 2010 01:39:57 +0000
(
01:39
+0000)
committer
Michael Ang
<mang@archive.org>
Fri, 15 Oct 2010 01:39:57 +0000
(
01:39
+0000)
BookReader/BookReader.js
patch
|
blob
|
history
diff --git
a/BookReader/BookReader.js
b/BookReader/BookReader.js
index
463c042
..
7178d30
100644
(file)
--- a/
BookReader/BookReader.js
+++ b/
BookReader/BookReader.js
@@
-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);
}