mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-04 16:01:32 +08:00
DoubleClick middle mouse button to zoom to extents (AutoCad style).
This commit is contained in:
parent
8738d7f5e7
commit
45922e6f5d
@ -148,6 +148,14 @@ sub mouse_event {
|
||||
} elsif ($e->LeftDClick) {
|
||||
$self->on_double_click->()
|
||||
if $self->on_double_click;
|
||||
} elsif ($e->MiddleDClick) {
|
||||
if (@{$self->volumes}) {
|
||||
$self->zoom_to_volumes;
|
||||
} else {
|
||||
$self->zoom_to_bed;
|
||||
}
|
||||
$self->_dirty(1);
|
||||
$self->Refresh;
|
||||
} elsif (($e->LeftDown || $e->RightDown) && not $e->ShiftDown) {
|
||||
# If user pressed left or right button we first check whether this happened
|
||||
# on a volume or not.
|
||||
|
Loading…
x
Reference in New Issue
Block a user