Window moves underneath the cursor when starting a drag with representative()
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 155
- PR merge metrics
- No merged PRs in 30d
Description
When I use `representative()` to make an element draggable by just its child, the window jumps underneath the cursor such that the window’s top-left corner is under the cursor.
Demo: http://jsfiddle.net/eveLzaaw/2/

Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the behavior in the linked jsfiddle and then trace the representative() drag implementation. Compare the cursor position with the window position when the drag begins. Done means dragging through a child preserves the initial cursor-to-window offset instead of moving the window's top-left corner under the cursor.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100