Skip to content

Commit 1b68e3e

Browse files
committed
fixup! ui-manchette: fix waypoint menu positioning
1 parent ea8174d commit 1b68e3e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ui-manchette-with-spacetimechart/src/stories/base-with-waypoint-menu.stories.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ const DEFAULT_HEIGHT = 561;
2424

2525
/**
2626
* Example of setting up a menu for the waypoints.
27-
* When displayed, the interaction with the rest of the manchette is disabled
28-
* and the scroll inside the manchette is locked.
27+
* When displayed, the interaction with the rest of the manchette is disabled,
28+
* the scroll inside the manchette is locked and the pan in the space time chart is disabled.
2929
* */
3030

3131
const ManchetteWithSpaceTimeWrapper = ({
@@ -106,6 +106,7 @@ const ManchetteWithSpaceTimeWrapper = ({
106106
spaceOrigin={0}
107107
timeOrigin={Math.min(...projectPathTrainResult.map((p) => +p.departureTime))}
108108
{...spaceTimeChartProps}
109+
onPan={activeWaypointId ? undefined : spaceTimeChartProps.onPan}
109110
>
110111
{spaceTimeChartProps.paths.map((path) => (
111112
<PathLayer key={path.id} path={path} color={path.color} />

0 commit comments

Comments
 (0)