Set bounds to parent, if parent has x-overflow, element cannot drag to the right edge of the parent

Open
#639 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript, react
Domain
frontend

Research direction

Start with the linked CodeSandbox reproduction and inspect the behavior of bounds='parent' when the parent has horizontal overflow. Confirm the issue by dragging the element toward the parent’s right edge, then verify that the element can reach that edge without breaking the existing bounds behavior.

Written by the indexing model from the issue text.

Description

Description
set bounds to parent, if the parent element has x-overflow, the drag element cannot drag to the right edge of the parent.

// parent has x-overflow
<div>
  <Draggable bounds='parent'>
    <div>dragme</div>
  </Draggble>
<div>

Steps
https://codesandbox.io/s/crazy-violet-bs1t7x?file=/src/App.js

Expectation
The drag element can drag to the right edge of Parent.

Dominant language
JavaScript
Stars
9.3k
Forks
1k
Avg merge
3d 8h
Merged PRs (30d)
4

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.

More from react-grid-layout/react-draggable

All issues in react-grid-layout/react-draggable

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.