diff --git a/src/components/graph/SelectionToolbox.spec.ts b/src/components/graph/SelectionToolbox.spec.ts index 85acaf6cf..00ce74a51 100644 --- a/src/components/graph/SelectionToolbox.spec.ts +++ b/src/components/graph/SelectionToolbox.spec.ts @@ -450,9 +450,9 @@ describe('SelectionToolbox', () => { describe('Event Handling', () => { it('should handle wheel events', async () => { const mockCanvasInteractions = vi.mocked(useCanvasInteractions) - const handleWheelSpy = vi.fn() + const forwardEventToCanvasSpy = vi.fn() mockCanvasInteractions.mockReturnValue({ - handleWheel: handleWheelSpy + forwardEventToCanvas: forwardEventToCanvasSpy } as any) const mockExtensionService = vi.mocked(useExtensionService) @@ -467,7 +467,7 @@ describe('SelectionToolbox', () => { const panel = wrapper.find('.panel') await panel.trigger('wheel') - expect(handleWheelSpy).toHaveBeenCalled() + expect(forwardEventToCanvasSpy).toHaveBeenCalled() }) }) diff --git a/src/components/graph/SelectionToolbox.vue b/src/components/graph/SelectionToolbox.vue index f0a18ed3e..9970c0b47 100644 --- a/src/components/graph/SelectionToolbox.vue +++ b/src/components/graph/SelectionToolbox.vue @@ -13,7 +13,7 @@ header: 'hidden', content: 'p-1 h-10 flex flex-row gap-1' }" - @wheel="canvasInteractions.handleWheel" + @wheel="canvasInteractions.forwardEventToCanvas" > diff --git a/src/components/graph/selectionToolbox/MoreOptions.vue b/src/components/graph/selectionToolbox/MoreOptions.vue index 08d240dda..32729719c 100644 --- a/src/components/graph/selectionToolbox/MoreOptions.vue +++ b/src/components/graph/selectionToolbox/MoreOptions.vue @@ -26,6 +26,7 @@ :pt="pt" @show="onPopoverShow" @hide="onPopoverHide" + @wheel="canvasInteractions.forwardEventToCanvas" >
(null) const { menuOptions, menuOptionsWithSubmenu, bump } = useMoreOptionsMenu() const { toggleSubmenu, hideAllSubmenus } = useSubmenuPositioning() - +const canvasInteractions = useCanvasInteractions() const minimap = useMinimap() const containerStyles = minimap.containerStyles