Black Lives Matter. Please consider donating to Black Girls Code today.

Mobile Drag Scrolling a div with a Graph in it?

Hey all

For a website I’m making, I’m putting a plot inside of a scrollable div, so that only part of the graph is visible, and you can scroll horizontally to see the rest.

It looks roughly like this http://bit.ly/plotlymobiledrag

and it works great on desktop, however, on mobile, I can’t drag to scroll the div.

Does anyone know a possible solution for this?

For those running into this issue also, check out this github issue https://github.com/plotly/plotly.js/issues/2844