summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_editor.cpp
diff options
context:
space:
mode:
authorAlex Docauer <alex@docauer.net>2024-08-19 19:31:24 -0700
committerAlex Docauer <alex@docauer.net>2024-08-22 19:20:41 -0700
commit125ff3213ac282a801aaeeb7fc07ec55802866a5 (patch)
treeb8de6ee8ae0405df0304b82394611183c817912b /modules/gdscript/gdscript_editor.cpp
parent1bd740d18d714f815486b04bf4c6154ef6c355d9 (diff)
downloadredot-engine-125ff3213ac282a801aaeeb7fc07ec55802866a5.tar.gz
Only reset tooltip timer when mouse actually moved
InputEventMouseMotion isn't guaranteed to fire only on actual mouse movement. It's not uncommon for the underlying OS motion event to be sent either by the OS itself or another application even though the mouse hasn't moved. Godot will generate such zero-motion InputEventMouseMotion events itself for things like cursor shape changes. Once started, the tooltip timer is reset only after a mouse movement of at least 5 pixels in one frame.
Diffstat (limited to 'modules/gdscript/gdscript_editor.cpp')
0 files changed, 0 insertions, 0 deletions