kas-gui / kas

Another GUI toolkit
Apache License 2.0
892 stars 27 forks source link

Cleaner handling of pendling events; update Winit #412

Closed dhardy closed 9 months ago

dhardy commented 9 months ago

This updates to Winit master which fixes a touch-move bug (on Wayland).

Also fixes a bug with drag-opening a ComboBox menu. This was caused by re-ordering of pending actions resulting in an attempt to navigate to the first child of the menu before configuration. Originally the intention here was to use only a single pending list to avoid all re-ordering, but this PR takes a more limited solution:

PressMove events are sent immediately, instead of attempting to batch them (actual batching was already disabled). This may result in performance issues when rapidly scrolling a ListView which will require a more specific solution.

Behaviour change for attempting to grab mouse / touch input twice in a row to better handle the the odd place this does happen.