bitovi / bitovi/jquerypp

Window moves underneath the cursor when starting a drag with representative()

Open
#127 1 comment 0 reactions 0 assignees View on GitHub
bug help wanted
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/
![representative bug](https://cloud.githubusercontent.com/assets/10070176/19134966/2dd0f348-8b16-11e6-976f-2187fe220ea0.gif)

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.