mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fixed QuickZoom to support variable scaling (high DPI screens)
This commit is contained in:
parent
6fc2b6d8dc
commit
c374c9808a
1 changed files with 2 additions and 2 deletions
|
@ -70,8 +70,8 @@ class NavlibClient(pynav.NavlibNavigationModel):
|
|||
from UM.Qt.QtApplication import QtApplication
|
||||
main_window = QtApplication.getInstance().getMainWindow()
|
||||
|
||||
x_n = 2. * main_window._mouse_x / self._scene.getActiveCamera().getViewportWidth() - 1.
|
||||
y_n = 2. * main_window._mouse_y / self._scene.getActiveCamera().getViewportHeight() - 1.
|
||||
x_n = 2. * main_window._mouse_x / main_window.width() - 1.
|
||||
y_n = 2. * main_window._mouse_y / main_window.height() - 1.
|
||||
|
||||
if self.get_is_view_perspective():
|
||||
self._was_pick = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue