how can i get current postion of a Dragable with axis="y"

Open
#253 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Reproduce the issue using the shown example and inspect the handler's e and uiData arguments. Trace how x, deltaX, and lastX are produced when movement is constrained to the y axis; done means the reported position values consistently describe the draggable element.

Written by the indexing model from the issue text.

Description

<Dragable axis="y" onDag={handler}></Dragable>

with axis="y", this ele can only move on y axis, but in handler(e, uiData), all x values is not the right positon of ele, x, deltaX, lastX all varies...

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.