Draft: fix handling of MouseDelay (improved) (#23011)

* Update DraftGui.py

* Update gui_points.py
This commit is contained in:
Roy-043
2025-08-18 17:47:44 +02:00
committed by GitHub
parent f32ae1ca17
commit 13f3c37715
2 changed files with 19 additions and 9 deletions

View File

@@ -103,9 +103,9 @@ class Point(gui_base_original.Creator):
It should act as if the Enter key was pressed, or the OK button
was pressed in the task panel.
"""
if not self.ui.mouse:
return
if event_cb:
if not self.ui.mouse:
return
event = event_cb.getEvent()
if (event.getState() != coin.SoMouseButtonEvent.DOWN or
event.getButton() != event.BUTTON1):