1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-05 17:48:38 +00:00
This commit is contained in:
Michele Redolfi 2013-07-17 09:47:13 +02:00
parent ea1878e233
commit ed1df3b470

View File

@ -99,9 +99,10 @@ var pdf2htmlEX = (function(){
this.set_r = ratio; this.set_r = ratio;
} }
/* wait for redraw */ if (keep_shown)
if (! keep_shown) this.show(); // Refresh content
this.hide(); else
this.hide(); // Wait for redraw
this.$d.height(this.h * this.set_r); this.$d.height(this.h * this.set_r);
this.$d.width(this.w * this.set_r); this.$d.width(this.w * this.set_r);
@ -364,11 +365,10 @@ var pdf2htmlEX = (function(){
// Rescale pages // Rescale pages
var pl = this.pages; var pl = this.pages;
for(var i in pl) { for(var i in pl) {
if (prerendering_enabled && i > min_visible && i < max_visible) { if (prerendering_enabled && i > min_visible && i < max_visible)
pl[i].rescale(this.scale, true); pl[i].rescale(this.scale, true); // Force immediate refresh
pl[i].show(); // Force immediate refresh else
} else pl[i].rescale(this.scale); // Delayed refresh
pl[i].rescale(this.scale); // Delayed refresh
} }
// Correct container scroll to keep view aligned while zooming // Correct container scroll to keep view aligned while zooming