GtkSwitch ignores one click after dragging the handle
Steps to reproduce
- Compile and run GTK Widget Factory flatpak from git
- Drag the handle/circle of a sensitive GtkSwitch some distance and release it.
- Click on the switch to switch it's state
Current behaviour
The click does nothing. Another click is needed for the switch to respond.
Expected outcome
The switch changes state with the first click.
Version information
GTK 4.13.0 (git), Ubuntu 23.04, Wayland & X11.
Additional information
gtk_switch_click_gesture_pressed
and gtk_switch_click_gesture_released
are not called on the ignored click.
// Dragging
**: 16:34:22.249: gtk_switch_pan_gesture_pan: direction: 0, offset: 14.474428
**: 16:34:22.266: gtk_switch_pan_gesture_pan: direction: 0, offset: 14.474428
**: 16:34:22.282: gtk_switch_pan_gesture_pan: direction: 0, offset: 14.474428
// Dragging ended
**: 16:34:22.299: gtk_switch_pan_gesture_drag_end: x: -13.693422, y: -2.934327
// First Click
**: 16:34:23.707: gtk_switch_pan_gesture_drag_end: x: 0.000000, y: 0.000000
// Second Click
**: 16:34:25.655: gtk_switch_click_gesture_pressed
**: 16:34:25.724: gtk_switch_pan_gesture_drag_end: x: 0.000000, y: 0.000000
**: 16:34:25.724: gtk_switch_click_gesture_released
Seems to also be present in Ubuntu 23.04 Gnome settings 44.3 switches.
Edited by Khalid Abu Shawarib