Button style=link triggers no events #21

Open
opened 7 months ago by skupke · 0 comments
skupke commented 7 months 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 7 months ago
skupke self-assigned this 7 months ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.