another todo
This commit is contained in:
parent
3552e27dbc
commit
b0c0016c0a
1 changed files with 3 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
||||||
TODOs:
|
TODOs:
|
||||||
|
|
||||||
Fo sho:
|
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
|
- Show a progress bar when buffering
|
||||||
- use document.body.offsetWidth where present? (instead of window.innerWidth, the former excludes the width of scrollbars)
|
- 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
|
- scroll two pages at a time in double page mode
|
||||||
|
@ -113,7 +114,7 @@ function ComicBook(id, srcs, opts) {
|
||||||
page.src = src;
|
page.src = src;
|
||||||
|
|
||||||
page.onload = function() {
|
page.onload = function() {
|
||||||
pages[i] = this;loaded++;
|
pages[i] = this; loaded++;
|
||||||
if (loaded == buffer) ComicBook.prototype.drawPage();
|
if (loaded == buffer) ComicBook.prototype.drawPage();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue