mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 04:19:12 +00:00
Revert "Allow dragging mouse up/down to change zoom too"
This reverts commit 2c82e1966966a743a4fd8a6fd0b7f04220fc9c5c. Given the feedback from the following posts, we've decided to revert this change at the moment: * https://steamcommunity.com/app/431730/discussions/2/3059617763567133029/ * https://github.com/aseprite/aseprite/issues/2767
This commit is contained in:
parent
60db582932
commit
1a7c381c5e
@ -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+pt.y) / threshold;
|
||||
int newScale = m_startZoom.linearScale() + pt.x / threshold;
|
||||
render::Zoom newZoom = render::Zoom::fromLinearScale(newScale);
|
||||
|
||||
editor->setZoomAndCenterInMouse(
|
||||
|
Loading…
x
Reference in New Issue
Block a user