mix icon indicating copy to clipboard operation
mix copied to clipboard

Support for onDoubleTap and other properties on Pressable

Open leoafarias opened this issue 1 year ago • 3 comments

Discussed in https://github.com/conceptadev/mix/discussions/447

Originally posted by Solido August 15, 2024 I need support for double click :) right now onPress only is supported if I understand well? Thanks!

leoafarias avatar Aug 20 '24 12:08 leoafarias

Should also include styling variants.

leoafarias avatar Aug 20 '24 13:08 leoafarias

@leoafarias Thank you for create a great lib. There is also a disscusion on create onTapDown; https://discord.com/channels/1250793431819751524/1250797904340193280/1261089142759231741

I think it would be great if we can style when user pressing the pressable box.

Thanks!

quangson91 avatar Oct 25 '24 23:10 quangson91

I’d like to add my support for this feature request. I really need the ability to style a button specifically at the onTapDown event.

On the web we have hover styling, but on mobile, there’s no equivalent for a when a button is pressed (but not released) state. It would be helpful to apply styling in that moment, similar to how hover works on the web.

I see that #453 extends gesture detection, but it doesn’t seem to expose onTapDown yet.

Thanks for all the work you guys have done!

hmirza1 avatar Oct 29 '24 04:10 hmirza1

We realized that our implementation of the behavior was incorrect. In Mix v1, the animation was only triggered when the user released the button. However, based on your feedback, we modified the animation trigger moment in Mix v2. Now, the animation is activated on onTapDown.

Thank you all!

tilucasoli avatar Jan 13 '26 01:01 tilucasoli