aunnnn/RHLinePlot

+1 to not have interactive line plot consume all gestures

stammy opened this issue · 1 comments

Nice work on this! Just wanted to echo your note about wanting to work on interactive line plots not consuming all gestures. I think it would be neat to support various ways to work with it: for example, require an event to trigger horizontal scrubbing such as a long-press, or if possible only listen to horizontal movements and not vertical (in the case of scrolling a view up/down). But think the former is more than sufficient with a user-customizable long-press delay.

Hey, thanks for checking it out! I tried adding the LongPressGesture before the drag, but somehow the long press still consumes gestures exclusively.

So I've looked into approaches, and found like detecting horizontal drag is a good way out.

The final solution I'm going with is adding a (clear) proxy view and let it handles the long press and horizontal pan gestures with relevant callbacks to update states. I just updated the repo, feel free to check it out.

Thanks for raising this up, somehow it motivates me to fix it!