StablexUI icon indicating copy to clipboard operation
StablexUI copied to clipboard

Button TouchEvents causing crash on android during TOuch DOwn + Drag out situations

Open Glidias opened this issue 7 years ago • 1 comments

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.

Glidias avatar Nov 20 '17 12:11 Glidias

This is a workaround for some older version of openfl. Perhaps it can be safely removed now.

RealyUniqueName avatar Nov 28 '17 08:11 RealyUniqueName