From 4113b375d08c2831f5a6da1f5652c3a7052b9c0e Mon Sep 17 00:00:00 2001 From: Markus Rullkoetter Date: Wed, 31 Jul 2024 14:51:53 +0200 Subject: [PATCH] no need to hold disabled interactions because all are disabled --- packages/plugins/Export/src/store/actions.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/plugins/Export/src/store/actions.ts b/packages/plugins/Export/src/store/actions.ts index 9a7705456..465415657 100644 --- a/packages/plugins/Export/src/store/actions.ts +++ b/packages/plugins/Export/src/store/actions.ts @@ -1,6 +1,5 @@ import { jsPDF } from 'jspdf' import { PolarActionTree } from '@polar/lib-custom-types' -import { Interaction } from 'ol/interaction' import { ExportFormat, ExportGetters, ExportState } from '../types' const actions: PolarActionTree = { @@ -26,10 +25,7 @@ const actions: PolarActionTree = { // Screenshot canvas const CANVAS_ID = 'export-canvas' - const disabledInteractions: Array = [] - map.getInteractions().forEach((interaction) => { - disabledInteractions.push(interaction) interaction.setActive(false) }) @@ -110,7 +106,7 @@ const actions: PolarActionTree = { } } - disabledInteractions.forEach((interaction) => { + map.getInteractions().forEach((interaction) => { interaction.setActive(true) })