-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! Render high-res partial page views when falling back to CSS zoom
Make sure that the `#detailArea` is not used from a previous computation with a different scale. The `#detailArea` can become out of date when very quickly alternating between scrolling and zooming. This causes the canvas to be too big, even if then the rendered contents have the right scale. This commit: 1. changes `#shouldRenderDifferentArea` so that, whenever the scale changes, it forces re-computing what is the size of the new canvas to render. 2. making sure to trash the detail area of pages that are not visible anymore, so that we don't risk trying to render it before calling update().
- Loading branch information
1 parent
b3f0b52
commit f6ed873
Showing
2 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters