Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Seddik Yengui <[email protected]>
  • Loading branch information
Seddik Yengui committed Dec 12, 2024
1 parent 4e2c2c8 commit f4930be
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
});
}
Expand Down

0 comments on commit f4930be

Please sign in to comment.