Drag object inside scaled element

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

Nobody has claimed this yet.

Assessment

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

Research direction

No files or tests are named. Reproduce dragging an element inside a parent div whose CSS zoom changes dynamically, then investigate how the component calculates movement deltas and accepts a scale value; done means the dragged element follows the pointer correctly at different zoom levels.

Written by the indexing model from the issue text.

Description

Hi,

thank you for the cool component! It's really useful! I'm using it for dragging elements inside a div.

Would you be kind to help me with next:
the parent DIV element can be scaled dynamically by using css zoom feature. I've found that inside scaled DIV the draggable elements are moving with wrong delta.

Would you be kind to help me, how to configure dragging dynamically with proper scale value

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.