Button style=link triggers no events #21

Open
opened 2 years ago by skupke · 0 comments
skupke commented 2 years ago
Owner

Sometimes no events are fired at a button when the style is set to "link". style: link sets the following values:

strokeAlpha: 0.000000001
strokeActiveAlpha: 0.00000000001
fillAlpha: 0.000000001
fillActiveAlpha: 0.000000001

Probably by overlaying the transparent button with other transparent areas the alpha value becomes too small and reaches rounded 0. Pixi doesn't fire events if alpha is 0, hence the workaround with the very small numbers.

See button.js line 116 and 177 ff.

Sometimes no events are fired at a button when the style is set to "link". style: link sets the following values: strokeAlpha: 0.000000001 strokeActiveAlpha: 0.00000000001 fillAlpha: 0.000000001 fillActiveAlpha: 0.000000001 Probably by overlaying the transparent button with other transparent areas the alpha value becomes too small and reaches rounded 0. Pixi doesn't fire events if alpha is 0, hence the workaround with the very small numbers. See button.js line 116 and 177 ff.
skupke added the
Bug
label 2 years ago
skupke self-assigned this 2 years ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: IWMBrowser/iwmlib#21
Loading…
There is no content yet.