Fixed button bug with area interaction.
This commit is contained in:
Vendored
+6
-4
@@ -2862,10 +2862,10 @@
|
||||
* @return {Button} A reference to the button for chaining.
|
||||
*/
|
||||
hide() {
|
||||
this.opts.strokeAlpha = 0;
|
||||
this.opts.strokeActiveAlpha = 0;
|
||||
this.opts.fillAlpha = 0;
|
||||
this.opts.fillActiveAlpha = 0;
|
||||
this.opts.strokeAlpha = 0.0;
|
||||
this.opts.strokeActiveAlpha = 0.0;
|
||||
this.opts.fillAlpha = 0.0000000001; // WORKAROUND: See https://github.com/pixijs/pixi.js/wiki/v5-Migration-Guide#graphics-interaction
|
||||
this.opts.fillActiveAlpha = 0.0000000001;
|
||||
|
||||
this.layout();
|
||||
|
||||
@@ -6260,6 +6260,7 @@
|
||||
tapDistance = 10,
|
||||
longPressTime = 500.0,
|
||||
useCapture = true,
|
||||
capturePointerEvents = true,
|
||||
mouseWheelElement = null,
|
||||
logInteractionsAbove = 12
|
||||
} = {}
|
||||
@@ -6267,6 +6268,7 @@
|
||||
super(element, target, {
|
||||
tapDistance,
|
||||
useCapture,
|
||||
capturePointerEvents,
|
||||
longPressTime,
|
||||
mouseWheelElement
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user