Brush interaction not working on mobile
Author: BrianRosamiliaCreated Oct 6, 2020Updated Sep 1, 2026
Labels🐛 bug👋 help wanted@visx/brush@visx/drag
(Enjoying the library, thanks for making it available)
I noticed the brush doesn't work with touch interactivity on mobile. Example here: https://vx-demo.now.sh/brush
After digging into the code a bit, I noticed that mobile events don't seem to be wired up for the Drag component. Shouldn't drag include touch and touchmove the same way as mouse and mousemove?
https://github.com/airbnb/visx/blob/master/packages/visx-drag/src/Drag.tsx#L121-L122
I could give it a shot if this is unintended and no one has time to look into it or is currently doing so. Lmk
Source: airbnb/visx