Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Drag Line When Inside Polygon #1835

Open
sangeetha321 opened this issue Oct 9, 2024 · 1 comment
Open

Unable to Drag Line When Inside Polygon #1835

sangeetha321 opened this issue Oct 9, 2024 · 1 comment

Comments

@sangeetha321
Copy link

I'm experiencing an issue with my React-Conva components. I have two components: one for drawing lines and another for polygons. The problem occurs when I draw a line first and then a polygon. If the line is inside the polygon, I'm unable to drag the line without first moving the polygon.

Steps to Reproduce:

  • Draw a line using the line component.
  • Draw a polygon using the polygon component, ensuring the line is inside the polygon.
  • Attempt to drag the line.
  • Expected Behavior: I should be able to drag the line freely, regardless of its position relative to the polygon.

Actual Behavior: The line cannot be dragged if it's inside the polygon. I must first move the polygon to be able to drag the line.

I am using "react-konva": "^18.2.10"

This issue seems similar to #238.
Is this issue resolved in the latest packages?

@lavrton
Copy link
Member

lavrton commented Oct 10, 2024

Make a demo. Probably you need to disable fill part of the polygon: fillEnabled={false}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants