-
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.
Don't hide the different layers when zooming
When hiding a layer we set de display to none and from time to time time, if the layer is focused, it causes a focus loss. It's especially annoying when the user is zooming while in the middle of a drawing session on mobile (it's pretty common to zoom in/out on such devices). In considering, that few years ago, a scaling was causing a complete re-rendering of a page, it made sense to just hide the layer during the scaling in order to avoid a mismatch between element dimensions in different layers. But nowadays, things are different because only the canvas is re-rendered the other layers are just scaled. So this patch shouldn't hurt.
- Loading branch information
1 parent
c198e0b
commit 7d51d9b
Showing
1 changed file
with
16 additions
and
16 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