Enabling both zoom and pan on dragmode

I want to add the feature to my scatter plot where the user can “zoom” and “pan” on drag mode.
I see in the documentation that we can set the dragmode to different modes like “zoom”, or “pan” or “select”. Is there a way to set dragmode to “zoom+pan”?

I am using the react Plotly package.

Use dramode: pan in the layout and scrollZoom: true in the config

This is good when you have a mouse, but doesn’t enable two-finger zoom action on a mobile. Does anyone know if there is any way of doing that?