Use drag-pan default condition with onFocusOnly
This commit is contained in:
@@ -179,7 +179,7 @@ class DragPan extends PointerInteraction {
|
||||
* @param {import("../MapBrowserEvent.js").default} mapBrowserEvent Browser event.
|
||||
* @return {boolean} Combined condition result.
|
||||
*/
|
||||
function defaultCondition(mapBrowserEvent) {
|
||||
export function defaultCondition(mapBrowserEvent) {
|
||||
return noModifierKeys(mapBrowserEvent) && primaryAction(mapBrowserEvent);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user