1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-28 07:23:13 -04:00
Files
egui/crates
Emil Ernerfeldt a815923717 Improve Response.dragged, drag_started and clicked (#3888)
If a widgets sense both clicks and drags, we don't know wether or not a
mouse press on it will be a short click or a long drag.

With this PR, `response.dragged` and `response.drag_started` isn't true
until we know it is a drag and not a click.
If the widget ONLY senses drags, then we know as soon as someone presses
on it that it is a drag.
If it is sensitive to both clicks and drags, we don't know until the
mouse moves a bit, or stays pressed down long enough.

This PR also ensures that `response.clicked` and is only true for
widgets that senses clicks.
2024-01-25 17:28:53 +01:00
..
2024-01-08 17:41:21 +01:00
2024-01-19 10:14:13 +01:00
2024-01-19 10:14:13 +01:00
2024-01-24 16:40:20 +01:00
2023-04-18 15:52:45 +02:00
2024-01-24 15:45:22 +01:00
2024-01-24 15:47:44 +01:00