react-timelines
react-timelines copied to clipboard
Pinch to zoom support
Not sure how to best do this with the API is configured - as the zoom level is passed into the React Timelines as a prop…
We could still detect and publish events on pinch
and unpinch
and then it's up for consumers to translate this to zoom
levels (as per how zoom control buttons work currently).
Going forward it might also be useful to have the component manage its own state (setState
) but allow consumers to override. E.g. have default zoom
, toggle open
handling etc.