bebraw / bebraw/dragjs

drag.slider/drag.xyslider cursor value at "end" isn't correct

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
48
Forks
4
PR merge metrics
No merged PRs in 30d

Description

For some reason cursor value does not get derived correctly at "end" handler. It seems pageX and clientX values are incorrect in this case.

Perhaps a possible workaround would be to pass last known good value from move or begin to end.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue in drag.slider and drag.xyslider, focusing on the end handler and comparing its pageX and clientX values with those from move or begin. Done means the cursor value is derived correctly when the drag ends, including at the end position.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.