I have a DeckGL map, on which I placed a button:
<DeckGL
ContextProvider={MapContext.Provider}
controller={true}
effects={effects}
getTooltip={getTooltip}
initialViewState={INITIAL_VIEW_STATE_AREA}
layers={layers}
onWebGLInitialized={onInitialized}
>
<Button
text="Search"
style={{ position: "absolute", top: 10, left: 10 }}
></Button>
<StaticMap
reuseMaps
mapStyle={MAP_STYLE}
preventStyleDiffing={true}
mapboxApiAccessToken={process.env.REACT_APP_MAPBOX_TOKEN}
/>
</DeckGL>
When I drag over the button, which is overlaid on the map, it also moves the map behind that button. Is there any way to prevent that movement? That is, prevent the map from being moved when dragging over an element?