feathersui / feathersui-starling

User interface components for Starling Framework and Adobe AIR
https://feathersui.com/learn/as3-starling/
Other
915 stars 386 forks source link

[Bug] exception when tap on an ItemRenderer with dragEnabled=true #1767

Closed subdan closed 5 years ago

subdan commented 5 years ago

If I enable drap&drop for ItemRenderer and touch on ItemRenderer I get an exception: ArgumentError: Stage cannot be null. on this line

protected function itemRenderer_drag_touchHandler(event:TouchEvent):void
{
...
var exclusiveTouch:ExclusiveTouch = ExclusiveTouch.forStage(itemRenderer.stage); // stage = null

This exceptions happens if I navigate to another screen when a user taps on an ItemRenderer. Is it a bug? Maybe I'm doing something wrong?

As a workaround I navigate to another screen with delay: Starling.juggler.delayCall(dispatchEventWith, 0.1, ...

subdan commented 5 years ago

Thanks.