rcpch / digital-growth-charts-react-component-library

A typescript React library for displaying RCPCH Digital Growth Charts from API data
https://growth.rcpch.ac.uk
MIT License
7 stars 9 forks source link

Better support for touch screens incl. pinch zoom #26

Open pacharanero opened 2 years ago

pacharanero commented 2 years ago

At present the dGC Chart Component focuses primarily on the deployment environment we expect in the NHS - majority desktop PCs with a mouse. In general there is relatively low penetration of touchscreen tablets and other touch devices in the clinical areas in which we expect Growth Charts to be initially used (paediatric clinics, GPs etc) and we have had to (for resource constraint reasons) focus on the Desktop browser.

We accept that other areas of clinical practice such as Community Nursing are likely to be the first to adopt touchscreen devices and we aim to support touchscreen zooming better in the future.

Future use of the dGC component for the eRedBook or other mobile apps will definitely need a touch-interface compatible Chart component)

pacharanero commented 2 years ago

Victory Charts, which is what the dGC charts are built with, doesn't support pinch zoom at this moment.

eatyourpeas commented 2 years ago

This is a great feature request but will take some significant thought given the reasons above. I will leave it on the road map for the future.

Raxxius commented 10 months ago

react-zoom-pan-pinch may provide a solution to this issue.

https://www.npmjs.com/package/react-zoom-pan-pinch