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

Disable Drag/Scroll of Scatter Mapbox in Python Dash


Running into trouble to disable scroll zoom for our responsive mobile web dashboard. We want to fix the scroll of the map.

We have tried using dcc.Graph(config={'staticPlot': True}) but this disables the hoverover component completely.

We also tried to change fig.layout.update(dragmode=False) but we can still pan around.

We also tried to change fix.layout.XAxis(fixedrange=True) but it kept on throwing errors.

How can we achieve the effect similar to dragmode=False in plotly.js and have the hoverover data working?