Button style=link triggers no events #21

Open
opened 2022-03-10 15:47:18 +01:00 by skupke · 0 comments
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 2022-03-10 15:47:18 +01:00
skupke self-assigned this 2022-03-10 15:47:18 +01:00
Sign in to join this conversation.
No Label
Bug
Enhancement
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
No description provided.