Fixed button bug with area interaction.
This commit is contained in:
+4
-4
@@ -632,10 +632,10 @@ export default class Button extends PIXI.Container {
|
||||
* @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()
|
||||
|
||||
|
||||
+2
-1
@@ -51,7 +51,8 @@ const index = new Index(itemTemplate, [
|
||||
['Flip Effect', 'flipeffect.html'],
|
||||
['Blur Filter', 'blurfilter.html'],
|
||||
['Text', 'text.html'],
|
||||
['Scrollview', 'scrollview.html']
|
||||
['Scrollview', 'scrollview.html'],
|
||||
['Stylus', 'stylus.html']
|
||||
],
|
||||
null)
|
||||
index.load()
|
||||
|
||||
Reference in New Issue
Block a user