allow preload to start from a given image

This commit is contained in:
Bala Clark 2015-07-20 23:49:44 +02:00
parent 108e696d6b
commit 19f74b5912
7 changed files with 57 additions and 20 deletions

View file

@ -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))