From f4930be644d52f86dfe5c7a7ee6bbd2aeb49201f Mon Sep 17 00:00:00 2001 From: Seddik Yengui Date: Thu, 12 Dec 2024 15:21:01 +0100 Subject: [PATCH] fix Signed-off-by: Seddik Yengui --- .../network-area-diagram-viewer.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/network-area-diagram-viewer/network-area-diagram-viewer.ts b/src/components/network-area-diagram-viewer/network-area-diagram-viewer.ts index 95aff0d..056d82c 100644 --- a/src/components/network-area-diagram-viewer/network-area-diagram-viewer.ts +++ b/src/components/network-area-diagram-viewer/network-area-diagram-viewer.ts @@ -351,18 +351,18 @@ export class NetworkAreaDiagramViewer { // Set zooming state when zooming begins panZoomInstance?.on('zoom', () => { - this.isZooming = true; // Zooming starts + this.isZooming = true; }); // Handle touch-based zoom ending panZoomInstance?.on('pinchZoomEnd', () => { - this.isZooming = false; // Zooming ends (pinch gesture) + this.isZooming = false; }); // Handle mouse-based panning and zoom ending panZoomInstance?.on('panEnd', () => { if (this.isZooming) { - this.isZooming = false; // Reset zooming state when interaction ends + this.isZooming = false; } }); }