another todo

This commit is contained in:
Bala Clark 2010-07-08 07:53:16 +01:00
parent 3552e27dbc
commit b0c0016c0a

View file

@ -2,6 +2,7 @@
TODOs:
Fo sho:
- The buffer is actually loading all the images at the same time, only load the next one on page.onload
- Show a progress bar when buffering
- use document.body.offsetWidth where present? (instead of window.innerWidth, the former excludes the width of scrollbars)
- scroll two pages at a time in double page mode
@ -113,7 +114,7 @@ function ComicBook(id, srcs, opts) {
page.src = src;
page.onload = function() {
pages[i] = this;loaded++;
pages[i] = this; loaded++;
if (loaded == buffer) ComicBook.prototype.drawPage();
}
});