d3-brush
d3-brush copied to clipboard
FF android
on ff android vertical pan is a little janky - address bar keeps moving up and down. Same in v1 - not a regression or anything
(reported by @1wheel)
- v1: https://observablehq.com/d/26c2fdd171873df0@270
- v2: https://observablehq.com/@d3/mona-lisa-histogram
Maybe a case of touch-action: none or touchStart.preventDefault ; see https://observablehq.com/d/8c6133113d33b60c
tested on an Android phone this version seems good (fixing the issue both on Chrome and FF):
the difference is svg.on("touchstart", event => event.preventDefault())
I'm not sure if it should be added by default in d3-brush or left to the user.