Added a flip zoom tool direction option
This commit is contained in:
parent
7333ddc9d8
commit
1945b04e69
3 changed files with 6 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ void DrawCamera::update_main(World& w) {
|
|||
}
|
||||
isAccurateZooming = newIsAccurateZooming;
|
||||
if(isAccurateZooming) {
|
||||
WorldScalar zoomFactor(std::pow(1.0 + w.main.toolbar.dragZoomSpeed, -w.main.input.mouse.move.y()));
|
||||
WorldScalar zoomFactor(std::pow(1.0 + w.main.toolbar.dragZoomSpeed, w.main.toolbar.flipZoomToolDirection ? w.main.input.mouse.move.y() : -w.main.input.mouse.move.y()));
|
||||
c.scale(zoomFactor);
|
||||
WorldVec mVec = startZoomCameraPos - startZoomMousePos;
|
||||
WorldScalar mX = c.inverseScale / startZoomVal;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue