StablexUI
StablexUI copied to clipboard
Button TouchEvents causing crash on android during TOuch DOwn + Drag out situations
I had to comment this out to prevent crashing in Button.hx on an Android samsung phone.
//#if mobile
// this.addEventListener(flash.events.TouchEvent.TOUCH_OUT, Button._onHout);
// this.addEventListener(flash.events.TouchEvent.TOUCH_OUT, Button._onRelease);
//#end
Not sure about IOS and other device types. Are the TouchEvents really needed? It seems to work fine (and in fact less buggy) without the TouchEvents.
This is a workaround for some older version of openfl. Perhaps it can be safely removed now.