Skip to content

Commit 4afda13

Browse files
committed
fix
1 parent b51622e commit 4afda13

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/x-charts-pro/src/internals/plugins/zoomGestures/usePanGesture.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ export function usePanGesture(instance: GestureInstance, options: UsePanGestureO
6969
const accumulated = { x: 0, y: 0 };
7070

7171
const handlePanStart = (event: PanEvent) => {
72-
isInteracting = true;
73-
handlersRef.current.onPanStart?.(event);
72+
if (!(event.detail.target as SVGElement)?.closest('[data-charts-zoom-slider]')) {
73+
isInteracting = true;
74+
handlersRef.current.onPanStart?.(event);
75+
}
7476
};
7577
const handlePanEnd = (event: PanEvent) => {
7678
isInteracting = false;

0 commit comments

Comments
 (0)