Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enchanted CTA | Support a Long Tap event - Mouse down for 3.4 seconds. #47

Closed
neodigm opened this issue Feb 22, 2023 · 6 comments
Closed
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@neodigm
Copy link
Collaborator

neodigm commented Feb 22, 2023

This would allow advanced users access to UX artifacts that otherwise would be hidden.

@neodigm neodigm added documentation Improvements or additions to documentation enhancement New feature or request labels Feb 22, 2023
@neodigm neodigm self-assigned this Feb 22, 2023
@arcanus55
Copy link
Owner

This would need to cancel the click and touch events.

@neodigm
Copy link
Collaborator Author

neodigm commented Feb 24, 2023

NOTE: This facilitates "advanced" UX to coexist with beginner UX journeys. Hope this makes sense.

@neodigm
Copy link
Collaborator Author

neodigm commented Mar 4, 2023

Lets do this now.

@neodigm neodigm changed the title Enchanted CTA | Support a Slow Tap event - Mouse down for 1 second. Enchanted CTA | Support a Long Tap event - Mouse down for 1 second. Mar 5, 2023
@neodigm
Copy link
Collaborator Author

neodigm commented Mar 5, 2023

This is done in v2.5. This is a non-breaking change. This is a life cycle hook of the NeodigmEnchantedCTA component (setOnLongTap). It uses a global feature flag (N55_CTA_LONG_TAP).

Usage:

if( neodigmEnchantedCTA ) neodigmEnchantedCTA.setOnLongTap( function(){ alert("count to 1001 long tap"); }, "js-open-pup--countOn__1001")

@neodigm neodigm closed this as completed Mar 5, 2023
@neodigm
Copy link
Collaborator Author

neodigm commented Mar 30, 2023

Please create a Wiki recipe. Also, determine if there is an issue with the hit area, or rage clicking.

@neodigm neodigm reopened this Mar 30, 2023
@neodigm neodigm changed the title Enchanted CTA | Support a Long Tap event - Mouse down for 1 second. Enchanted CTA | Support a Long Tap event - Mouse down for 3.4 seconds. Apr 2, 2023
@arcanus55
Copy link
Owner

This seems to be stable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants