Skip to content

Marker is not draggable when change position of that #1236

Description

@fghorbani

Describe the bug 馃悰
Im using of custom Marker. I needed to change position of that to something like bottom, center, that was fine and my Marker is displaying at the top of my coordination, but in this case some parts of Marker are not draggable and user can drag only when click on half of that.

Expected behavior 馃挱
whole of the marker has to be draggable

Rec.0244.mp4
 
const Marker = (props) => 
 (
  <Box sx={{ width: '100%', height: '100vh' }}>
      <MarkerStyle>
        <img src={marker} alt="" style={{ width: '53px', height: '73px' }} />
      </MarkerStyle>
  </Box>
)

const MarkerStyle = styled(Box)`
position: absolute;
top: 100%;
left: 50%;
height: 73px;
width: 53px;
transform: translate(-50%, -100%);
&:hover {
  z-index: 1;
}
`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions