[✓][BUG][ED] Moving the mouse too quickly causes dropdown list to close

Started by WillLem, Today at 04:37:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

WillLem

This is a bit of a "focused component" tail-chaser.

Dropdown lists can be browsed by hovering the mouse wheel over the dropdown whilst the list is closed. For this to happen, focus must be pushed to the component whilst the mouse is hovered over it.

I ran into a bug where focus stayed with the dropdown even after the mouse was then moved elsewhere, meaning that when subsequently trying to zoom using the mouse wheel, the dropdown list would still be cycling through its items.

So, focus must be pulled back to the main form when the mouse leaves the dropdown. This gives rise to another bug whereby if the list is opened but the mouse is moved away from the dropdown component too quickly, the list closes. It's necessary, then, to explicitly tell the compenent to wait for the list to be closed manually before pulling focus.

This has now been sorted out, but I wanted to log it here in case any further issues arise.

Fixed in commit 32ab92d