You could disable default behaviour on Map initialisation:
export default function defaultMapInteractions(): Interaction[] {
return defaultInteractions({
doubleClickZoom: false,
shiftDragZoom: false,
dragPan: false,
altShiftDragRotate: true,
keyboard: false,
}).extend([
new DragPan({
condition: (event) => {
return (
(primaryAction(event) && (noModifierKeys(event) || altKeyOnly(event))) ||
(event.originalEvent as PointerEvent).button === 1
);
},
}),
]).getArray();
}
....
this.map = new olMap({
interactions: [
...defaultMapInteractions(),
],....