johnny / johnny/jquery-sortable

How is the distance from the mouse pointer to the $item being dragged calculated?

Open
#164 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
1.5k
Forks
429
PR merge metrics
No merged PRs in 30d

Description

The reason I ask is looking at the attached pic, you'll see the mouse cursor, a move cursor and the LI item (wrapped with a dotted border). That Top/Left distance is exactly the Top/Left distance from the DIV class=section to the DIV class=row inside the LI.

Should I be using an itemPath, ContainerPath, both? I'm just unclear. Any help would be appreciated.

Here is the basic code layout:

``` html









  1. col 2

    col3

    col4








```

![image](https://cloud.githubusercontent.com/assets/10375994/5909661/ae4ff0aa-a580-11e4-8553-beefdaa21770.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.