Files
OrcaSlicer-KX/src
Dima Buzdyk 9dad4f6433 gui: fix zoom-to-mouse (#4844)
gui: fix zoom-to-mouse

Plater disappeared when zoom-to-mouse enabled and user tries to zoom
with a side view enabled (Ctrl+<3..6>).

Mouse/screen center position estimation in 3D is made by calculating
intersection of a mouse vector which comes 'through' the screen with an
XY plane. However, when screen is parallel to Z axis, intersection point
located at infinite which results in infinite camera translation vector.

This change switches mouse position estimation to use of projection
matrix like its done for camera panning.
2024-04-14 17:49:44 +08:00
..
2023-12-01 10:42:45 +00:00
2023-06-14 10:43:35 +08:00
2024-02-27 21:57:31 +08:00
2023-08-09 13:42:41 +08:00
2023-12-23 17:44:09 +08:00
2024-03-17 17:33:31 +08:00
2024-04-14 17:49:44 +08:00
2023-08-09 13:42:41 +08:00
2023-12-01 10:42:45 +00:00