mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 15:32:38 +00:00
Now Editor::controlInfiniteScroll() is called when the editor's state is MOVING_PIXELS but even when the user is not dragging the pixels (just the mouse captured).
This commit is contained in:
parent
e5c7bf34fa
commit
4a9f6cf520
@ -1118,11 +1118,11 @@ bool Editor::msg_proc(JMessage msg)
|
||||
}
|
||||
// Moving pixels
|
||||
else if (m_state == EDITOR_STATE_MOVING_PIXELS) {
|
||||
// Infinite scroll
|
||||
controlInfiniteScroll(msg);
|
||||
|
||||
// If there is a button pressed
|
||||
if (m_pixelsMovement->isDragging()) {
|
||||
// Infinite scroll
|
||||
controlInfiniteScroll(msg);
|
||||
|
||||
// Get the position of the mouse in the sprite
|
||||
int x, y;
|
||||
screen_to_editor(msg->mouse.x, msg->mouse.y, &x, &y);
|
||||
|
Loading…
x
Reference in New Issue
Block a user