react-grid-layout / react-grid-layout/react-draggable
Dragging over an iframe stops dragging when moving the mouse too fast
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1k
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 4
Description
I have already seen this and this post, but I think it is a dirty workaround. I defined a CustomDraggable component (see below), which can be used everywhere, the iframe can be i child and since I am working with other libraries such as @react-aria/dialog and @react-aria/overlays I have no control of the container and @simlmx solution does not work.
import Draggable from "react-draggable";
import styles from "./CustomDraggable.module.css";
export const CustomDraggable: FC = ({ children }) => {
return (
<Draggable cancel={"input, svg, button, table"}>
<div className={styles.draggable}>{children}</div>
</Draggable>
);
};
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the rapid drag over an iframe with the CustomDraggable example and its react-draggable component. Compare the behavior with the linked issues, then trace the Draggable drag interaction; done means dragging remains active when the pointer crosses an iframe at speed, with a regression test covering that case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100