Commit 1b68e3e 1 parent ea8174d commit 1b68e3e Copy full SHA for 1b68e3e
File tree 1 file changed +3
-2
lines changed
ui-manchette-with-spacetimechart/src/stories
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ const DEFAULT_HEIGHT = 561;
24
24
25
25
/**
26
26
* 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 .
29
29
* */
30
30
31
31
const ManchetteWithSpaceTimeWrapper = ( {
@@ -106,6 +106,7 @@ const ManchetteWithSpaceTimeWrapper = ({
106
106
spaceOrigin = { 0 }
107
107
timeOrigin = { Math . min ( ...projectPathTrainResult . map ( ( p ) => + p . departureTime ) ) }
108
108
{ ...spaceTimeChartProps }
109
+ onPan = { activeWaypointId ? undefined : spaceTimeChartProps . onPan }
109
110
>
110
111
{ spaceTimeChartProps . paths . map ( ( path ) => (
111
112
< PathLayer key = { path . id } path = { path } color = { path . color } />
You can’t perform that action at this time.
0 commit comments