allow preload to start from a given image
This commit is contained in:
parent
108e696d6b
commit
19f74b5912
7 changed files with 57 additions and 20 deletions
|
@ -15,7 +15,7 @@ let srcs = [
|
|||
]
|
||||
let comic = window.comic = new ComicBook(srcs, { doublePage: true })
|
||||
|
||||
comic.render()
|
||||
comic.render().drawPage(5)
|
||||
|
||||
window.addEventListener('resize', debounce(comic.drawPage.bind(comic), 100))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue