Skip to content

Commit

Permalink
bugfix on pipeline movable didn't consider scalefactor - Progresses #178
Browse files Browse the repository at this point in the history
  • Loading branch information
damonsk committed May 31, 2024
1 parent d845cc8 commit 4e283c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/components/map/MapCanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ function MapCanvas(props) {
mapStyleDefs={mapStyleDefs}
setHighlightLine={setHighlightLine}
linkingFunction={clicked}
scaleFactor={scaleFactor}
/>
) : (
<Pipeline
Expand All @@ -459,6 +460,7 @@ function MapCanvas(props) {
metaText={metaText}
mapStyleDefs={mapStyleDefs}
setHighlightLine={setHighlightLine}
scaleFactor={scaleFactor}
/>
)}
</React.Fragment>
Expand Down Expand Up @@ -619,7 +621,6 @@ function MapCanvas(props) {
onClick={props.shouldHideNav}
color={textColour[props.mapStyleDefs.className]}
aria-label={props.hideNav ? 'Exit Fullscreen' : 'Fullscreen'}
// sx={{ position: 'absolute', right: '10px', top: '0' }}
>
{props.hideNav ? (
<FullscreenExitIcon sx={IconButtonStyle} />
Expand Down

0 comments on commit 4e283c6

Please sign in to comment.