mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Reversed mouse wheel zooming in 3D once more. #2478
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user