mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-10 03:22:25 +00:00
Workaround wxMSW not catching mouse wheel events if panel has no focus. #2424
This commit is contained in:
1 parent
ce395dfba8
commit
5d9ff677c0
1 file changed
+4
-1
@@ -118,7 +118,10 @@ sub mouse_event {
|
|||||||
my ($self, $e) = @_;
|
my ($self, $e) = @_;
|
||||||
|
|
||||||
my $pos = Slic3r::Pointf->new($e->GetPositionXY);
|
my $pos = Slic3r::Pointf->new($e->GetPositionXY);
|
||||||
if ($e->LeftDClick) {
|
if ($e->Entering && &Wx::wxMSW) {
|
||||||
|
# wxMSW needs focus in order to catch mouse wheel events
|
||||||
|
$self->SetFocus;
|
||||||
|
} elsif ($e->LeftDClick) {
|
||||||
$self->on_double_click->()
|
$self->on_double_click->()
|
||||||
if $self->on_double_click;
|
if $self->on_double_click;
|
||||||
} elsif ($e->LeftDown || $e->RightDown) {
|
} elsif ($e->LeftDown || $e->RightDown) {
|
||||||
|
|||||||
Reference in new issue
Block a user