Skip to main content
MPast.1
Senior
April 1, 2021
Question

Long Press on flexButton

  • April 1, 2021
  • 0 replies
  • 576 views

Hi all,

I'm trying to manage a long pression on a Flex button.

I want realize this simple algorithm:

short pression = action_1()

long pression(IE 2secons) = action_2()

I enabled clickListener over this Flex button, I configured the trigger event on "Touch" so I can start a counter to evaluate how time pass from the first pression.

I enabled then handleClickEvent to reveal when touch is RELEASED to block and reset the actual "long press" action.

But I have same problems:

  • handleClickEvent doesn't reveal the released event
  • how can I understand if the finger is moving over the actual Flexbutton? I would like to block the long pression in case user move his finger over others objects
  • Is there any other Elegant mode to do this?

Thanks

    This topic has been closed for replies.