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

How to delay the CursorCrosshair invocation? #164

Open
Lexical-Luke opened this issue Dec 21, 2023 · 1 comment
Open

How to delay the CursorCrosshair invocation? #164

Lexical-Luke opened this issue Dec 21, 2023 · 1 comment
Labels
question Further information is requested

Comments

@Lexical-Luke
Copy link

I see that CursorCrosshair has a prop for LongPressGestureHandlerProps, what is this and can I use it to invoke the CursorCrosshair after a certain ms delay? This would be great to enable scrollable graphs.

@honeybadger26
Copy link
Collaborator

honeybadger26 commented Apr 18, 2024

Hi @Lexical-Luke,

You can delay the invocation using the minDurationMs prop.

// Delay the Crosshair from showing by 1 second
<CandlestickChart.Crosshair minDurationMs={1000}>

LineChart.CursorCrosshair also has this prop.

@honeybadger26 honeybadger26 added the question Further information is requested label Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants