mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 19:20:09 +00:00
Allow dragging mouse up/down to change zoom too
This commit is contained in:
parent
90911f97d0
commit
2c82e19669
@ -72,7 +72,7 @@ bool ZoomingState::onMouseMove(Editor* editor, MouseMessage* msg)
|
||||
if (m_moved || std::sqrt(pt.x*pt.x + pt.y*pt.y) > threshold) {
|
||||
m_moved = true;
|
||||
|
||||
int newScale = m_startZoom.linearScale() + pt.x / threshold;
|
||||
int newScale = m_startZoom.linearScale() + (pt.x+pt.y) / threshold;
|
||||
render::Zoom newZoom = render::Zoom::fromLinearScale(newScale);
|
||||
|
||||
editor->setZoomAndCenterInMouse(
|
||||
|
Loading…
x
Reference in New Issue
Block a user