Skip to content

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

@achaffman

Description

@achaffman

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:

<div class="section">
  <div class="row">
    <div class="tab-content">
      <div class="tab-pane">
        <ol class="mycourselist">
          <li>
            <div class="row">
              <div class="icon-move"><span class="glyphicon glyphicon-move"></div>
              <div>col 2</div>
              <div>col3</div>
              <div>col4</div>
            </li>
           </ol>
         </div>
       </div> 
     </div>
   </div>
 </div>  

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions