JSainsburyPLC / react-timelines

React Timelines Library
https://jsainsburyplc.github.io/react-timelines/
MIT License
257 stars 118 forks source link

Pinch to zoom support #42

Open willbamford opened 7 years ago

willbamford commented 7 years ago

pinch-to-zoom-patent-530

rbrtsmith commented 7 years ago

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…

willbamford commented 7 years ago

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).

willbamford commented 7 years ago

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.