How to dispatch a long press event from a custom item renderer
A custom item renderer may optionally dispatch
FeathersEventType.LONG_PRESS, similar to a
LongPress class, it's easy to dispatch
That's it! The
TouchEvent.TOUCH listeners will be added automatically, and your item renderer will dispatch
FeathersEventType.LONG_PRESS like a button.
Combined with Event.TRIGGERED or Event.CHANGE
If you plan to combine,
TapToSelect, you should ensure that the other two events aren't dispatched after a long press.
First, always create the
LongPress instance before the
TapToSelect instances. This ensures that the
TouchEvent.TOUCH listener in
LongPress gets a higher priority.
Then, pass the
TapToSelect instances to the
LongPress so that it can disable them temporarily after a long press.