~eliasnaur/gio#199: 
Receive click events of TypeClick immediately after gtx becomes enabled again

Reproduction steps:

  1. Apply gtx in a disabled state on a button for some time (e.g. 2 seconds).
  2. While the button is disabled bring the cursor inside of the button.
  3. After the button is active again, clicks wouldn't be received until the button is re-hovered.

A sample program that helps to reproduce these steps: https://github.com/yarcat/playground/blob/master/gio-gtx-disabled/hello.go

The culprit is here https://git.sr.ht/~eliasnaur/gio/tree/main/item/gesture/gesture.go#L162 The thing is that while the button is disabled, Enter event wouldn't be received. And it breaks this state-machine.

Status
REPORTED
Submitter
~yarcat
Assigned to
No-one
Submitted
a month ago
Updated
a month ago
Labels
No labels applied.

~eliasnaur a month ago

Thanks. It sounds like the fix should be easy. Would you be interested in providing a fix (and test)?

Register here or Log in to comment, or comment via email.