konvajs / react-konva

React + Canvas = Love. JavaScript library for drawing complex canvas graphics using React.
https://konvajs.github.io/docs/react/
MIT License
5.8k stars 260 forks source link

Unable to Drag Line When Inside Polygon #812

Closed sangeetha321 closed 1 month ago

sangeetha321 commented 1 month ago

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:

import { Circle, Line, Rect, Text, Group } from "react-konva";
import { Circle, Line, Rect, RegularPolygon, Text, Group} from "react-konva";

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"

lavrton commented 1 month ago

Closing as duplicate of https://github.com/konvajs/konva/issues/1835