mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Fix of Zoom by trackpad does not update until click #2750
For an unknown reason, if the scrolling is performed on Windows with the two finger gesture on touch pad, there is no Idle event generated on some computers. The Idle is not generated on Vojtech's laptop, it is generated on Enrico's laptop. evt.Skip() solves the issue on Vojtech's laptop.
This commit is contained in:
parent
93983b7864
commit
4fbee3216b
1 changed files with 7 additions and 0 deletions
|
@ -2474,6 +2474,13 @@ void GLCanvas3D::on_mouse_wheel(wxMouseEvent& evt)
|
||||||
evt.SetY(evt.GetY() * scale);
|
evt.SetY(evt.GetY() * scale);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __WXMSW__
|
||||||
|
// For some reason the Idle event is not being generated after the mouse scroll event in case of scrolling with the two fingers on the touch pad,
|
||||||
|
// if the event is not allowed to be passed further.
|
||||||
|
// https://github.com/prusa3d/PrusaSlicer/issues/2750
|
||||||
|
evt.Skip();
|
||||||
|
#endif /* __WXMSW__ */
|
||||||
|
|
||||||
// Performs layers editing updates, if enabled
|
// Performs layers editing updates, if enabled
|
||||||
if (is_layers_editing_enabled())
|
if (is_layers_editing_enabled())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue