coinjar / react-native-wagmi-charts

A sweet & simple chart library for React Native that will make us feel like We're All Gonna Make It.
MIT License
589 stars 116 forks source link

How to delay the CursorCrosshair invocation? #164

Open Lexical-Luke opened 11 months ago

Lexical-Luke commented 11 months ago

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 commented 7 months ago

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.