Exponential increase when dragging

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

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript, react
Domain
frontend

Research direction

The report names no source files, tests, or runnable reproduction; start by reducing the draggable component and adjacent div behavior to a reproducible example. Done means dragging no longer causes the component position or neighboring div size to grow exponentially, with a regression test if the project’s test setup supports it.

Written by the indexing model from the issue text.

Description

Hi everybody,

I am having some troubles in my draggable component, whose position depends on the position of other element. At the sime time, the draggable component moves the other element. To be clearer; the draggable component is next to a div, and the purpose is to make the div longer while dragging the other component.

I asume the draggable component is getting an exponential increase position because the div increase.
Is there any way to solve this?

I am attaching two images; first one corresponds to origin position, second one to the position after dragging.
Captura de pantalla 2020-11-02 a las 15 31 10
Captura de pantalla 2020-11-02 a las 15 31 19

Thank you.

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.