We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68bb9bf commit ef3ba89Copy full SHA for ef3ba89
haxe/ui/backend/ComponentBase.hx
@@ -25,11 +25,13 @@ class ComponentBase extends FlxSpriteGroup implements IComponentBase {
25
var tf:TextDisplay; // text
26
var input:TextInput;
27
28
- var asComponent:Component = cast this;
+ var asComponent:Component;
29
30
public function new() {
31
super();
32
33
+ asComponent = cast this;
34
+
35
scrollFactor.set(0, 0); // ui doesn't scroll by default
36
37
surface = new FlxSprite();
0 commit comments