mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-21 03:40:57 +00:00
Better support for different zoom levels in the mini-editor.
This commit is contained in:
parent
536d67566f
commit
b9f8c201c4
@ -96,8 +96,11 @@ public:
|
||||
}
|
||||
|
||||
void scrollChanged(Editor* editor) OVERRIDE {
|
||||
// Show the mini editor
|
||||
if (editor->getZoom() > 0) {
|
||||
// Show the mini editor if it wasn't created yet and the user
|
||||
// zoomed in, or if the mini-editor was created and the zoom of
|
||||
// both editors is not the same.
|
||||
if ((!mini_editor && editor->getZoom() > 0) ||
|
||||
(mini_editor && mini_editor->getZoom() != editor->getZoom())) {
|
||||
// If the mini frame does not exist, create it
|
||||
if (!mini_editor_frame)
|
||||
create_mini_editor_frame();
|
||||
|
Loading…
x
Reference in New Issue
Block a user