reset canvas before rendering images
This commit is contained in:
parent
4d6651818d
commit
3655c21c20
1 changed files with 4 additions and 0 deletions
|
@ -181,6 +181,10 @@ function ComicBook(id, srcs, opts) {
|
||||||
|
|
||||||
var width = page.width;
|
var width = page.width;
|
||||||
|
|
||||||
|
// reset the canvas to stop duplicate pages showing
|
||||||
|
canvas.width = 0;
|
||||||
|
canvas.height = 0;
|
||||||
|
|
||||||
if (options.displayMode === "double") {
|
if (options.displayMode === "double") {
|
||||||
|
|
||||||
// for double page spreads, factor in the width of both pages
|
// for double page spreads, factor in the width of both pages
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue