xanderdeseyn / react-native-responsive-linechart

A customizable and responsive line or area chart for react-native
https://react-native-responsive-linechart.surge.sh
MIT License
203 stars 47 forks source link

Tooltip does not persist, when dragging instead of tapping #48

Closed tlow92 closed 3 years ago

tlow92 commented 3 years ago

Hi,

  1. When tapping the Line the tooltip stays open, which is correct.
  2. When touching and dragging the line the tooltip moves with the cursor. Upon release the tooltip is removed.

Is it supposed to behave like this? I would expect the tooltip to stay when releasing after the "touch and drag" interaction.

Edit: Using version 5.4.1

xanderdeseyn commented 3 years ago

I suppose it should be configurable. I'll have a look at it!

xanderdeseyn commented 3 years ago

v5.4.2 now exposes a new prop on Line: hideTooltipOnDragEnd

Set to true if the tooltip should be hidden when the user stops dragging the chart. It now persists by default.

tlow92 commented 3 years ago

Thanks, working great!