godotengine / godotengine/godot
Release event of a double click has double_click=false
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
### Tested versions
Reproducible in v4.2.1.stable.official [b09f793f5]
### System information
Godot v4.2.1.stable - Windows 10.0.19045 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 3080 (NVIDIA; 31.0.15.3699) - 12th Gen Intel(R) Core(TM) i5-12600K (16 Threads)
### Issue description
When the user double-clicks, four `InputEventMouseButton` events are generated:
```
InputEventMouseButton: button_index=1, mods=none, pressed=true, canceled=false, position=((523, 290)), button_mask=1, double_click=false
InputEventMouseButton: button_index=1, mods=none, pressed=false, canceled=false, position=((523, 290)), button_mask=0, double_click=false
InputEventMouseButton: button_index=1, mods=none, pressed=true, canceled=false, position=((523, 290)), button_mask=1, double_click=true
InputEventMouseButton: button_index=1, mods=none, pressed=false, canceled=false, position=((523, 290)), button_mask=0, double_click=false
```
The final event (the end of the double-click) has `double_click=false` and is therefore indistinguishable from the end of a standard click.
### Steps to reproduce
Double click on a control and check the `double_click` property of the final `InputEventMouseButton`.
### Minimal reproduction project (MRP)
[Double Click Test.zip](https://github.com/godotengine/godot/files/14406905/Double.Click.Test.zip)
Contributor guide
Assessment
This issue has not been assessed yet.