projects
/
bookreader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f68f169
)
Fix typo (min vs max)
author
Michael Ang
<mang@archive.org>
Thu, 6 Aug 2009 22:39:47 +0000
(22:39 +0000)
committer
Michael Ang
<mang@archive.org>
Thu, 6 Aug 2009 22:39:47 +0000
(22:39 +0000)
GnuBook/GnuBook.js
patch
|
blob
|
history
diff --git
a/GnuBook/GnuBook.js
b/GnuBook/GnuBook.js
index
a1f0beb
..
30cb648
100644
(file)
--- a/
GnuBook/GnuBook.js
+++ b/
GnuBook/GnuBook.js
@@
-570,7
+570,7
@@
GnuBook.prototype.resizePageView = function() {
// We use clientWidth here to avoid miscalculating due to scroll bar
var newCenterX = oldCenterX * (viewWidth / oldPageViewWidth);
var newLeft = newCenterX - $('#GBcontainer').attr('clientWidth') / 2;
- newLeft = Math.m
in
(newLeft, 0);
+ newLeft = Math.m
ax
(newLeft, 0);
$('#GBcontainer').attr('scrollLeft', newLeft);
//console.log('oldCenterX ' + oldCenterX + ' newCenterX ' + newCenterX + ' newLeft ' + newLeft);