techniq / layerchart

Composable Svelte chart components to build a wide range of visualizations
https://www.layerchart.com
MIT License
396 stars 8 forks source link

[Transform] Support mobile/touch input #82

Open techniq opened 4 months ago

techniq commented 4 months ago

https://www.layerchart.com/docs/components/Transform

Might need to think on how best to opt-in to this (if you're scrolling down the screen, hitting a chart/map and immediately scrolling can be frustrating, especially if there isn't enough of an edge on either side to use to continue to scroll.

Sometimes maps/etc require multiple fingers to active the scrolling, for example.

discussion

techniq commented 3 weeks ago

Mobile support should be handled when we switch to pointer events (#144) although this issue will be used to improve how it integrates on mobile (opt in, require 2 fingers to drag, etc). Also, implementing pointer-based pinch/zoom gestures instead of relying on mousewheel events