react-grid-layout / react-grid-layout/react-draggable

Dragging over an iframe stops dragging when moving the mouse too fast

Open
#613 2 comments 1 reaction 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.