projects
/
bookreader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a08f4aa
)
Cruft removal.
author
Michael Ang
<mang@archive.org>
Mon, 17 Aug 2009 23:09:13 +0000
(23:09 +0000)
committer
Michael Ang
<mang@archive.org>
Mon, 17 Aug 2009 23:09:13 +0000
(23:09 +0000)
GnuBook/GnuBook.js
patch
|
blob
|
history
diff --git
a/GnuBook/GnuBook.js
b/GnuBook/GnuBook.js
index
3c15e3b
..
ee9401b
100644
(file)
--- a/
GnuBook/GnuBook.js
+++ b/
GnuBook/GnuBook.js
@@
-1439,8
+1439,8
@@
GnuBook.prototype.flipLeftToRight = function(newIndexL, newIndexR) {
// Left gets the offset of the current left leaf from the document
var left = $(this.prefetchedImgs[leftLeaf]).offset().left;
// $$$ This seems very similar to the gutter. May be able to consolidate the logic.
// Left gets the offset of the current left leaf from the document
var left = $(this.prefetchedImgs[leftLeaf]).offset().left;
// $$$ This seems very similar to the gutter. May be able to consolidate the logic.
- // XXX need to recalc
var right = $('#GBtwopageview').attr('clientWidth')-left-$(this.prefetchedImgs[leftLeaf]).width()+$('#GBtwopageview').offset().left-2+'px';
var right = $('#GBtwopageview').attr('clientWidth')-left-$(this.prefetchedImgs[leftLeaf]).width()+$('#GBtwopageview').offset().left-2+'px';
+
// We change the left leaf to right positioning
// $$$ This causes animation glitches during resize. See https://bugs.edge.launchpad.net/gnubook/+bug/328327
$(this.prefetchedImgs[leftLeaf]).css({
// We change the left leaf to right positioning
// $$$ This causes animation glitches during resize. See https://bugs.edge.launchpad.net/gnubook/+bug/328327
$(this.prefetchedImgs[leftLeaf]).css({
@@
-1448,10
+1448,6
@@
GnuBook.prototype.flipLeftToRight = function(newIndexL, newIndexR) {
left: ''
});
left: ''
});
- left = $(this.prefetchedImgs[leftLeaf]).offset().left - $('#book_div_1').offset().left; // $$$ update div name
-
- right = left+$(this.prefetchedImgs[leftLeaf]).width()+'px';
-
$(this.leafEdgeTmp).animate({left: gutter}, this.flipSpeed, 'easeInSine');
//$(this.prefetchedImgs[leftLeaf]).animate({width: '0px'}, 'slow', 'easeInSine');
$(this.leafEdgeTmp).animate({left: gutter}, this.flipSpeed, 'easeInSine');
//$(this.prefetchedImgs[leftLeaf]).animate({width: '0px'}, 'slow', 'easeInSine');