mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 07:34:03 -06:00
Reversed mouse wheel zooming in 3D once more. #2478
This commit is contained in:
parent
49817aac34
commit
0de1c235a9
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ sub new {
|
||||||
my $zoom = $e->GetWheelRotation() / $e->GetWheelDelta();
|
my $zoom = $e->GetWheelRotation() / $e->GetWheelDelta();
|
||||||
$zoom = max(min($zoom, 4), -4);
|
$zoom = max(min($zoom, 4), -4);
|
||||||
$zoom /= 10;
|
$zoom /= 10;
|
||||||
$self->_zoom($self->_zoom * (1-$zoom));
|
$self->_zoom($self->_zoom / (1-$zoom));
|
||||||
|
|
||||||
# In order to zoom around the mouse point we need to translate
|
# In order to zoom around the mouse point we need to translate
|
||||||
# the camera target
|
# the camera target
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue