Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. JavaScript
  4. How to STOP Drag-n-Drop Finicky behavior ?

How to STOP Drag-n-Drop Finicky behavior ?

Scheduled Pinned Locked Moved JavaScript
tutorialhtmldatabasedockerquestion
1 Posts 1 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VernonM
    wrote on last edited by
    #1

    Hello & Thanks : Working-Example here : https://vmars.us/Guitar/Guitar-Scales-and-Boxes-Builder-1-Note-4-Frets-FORUM.html The working-example is VERY finicky , in that when Dragging an item , the Cursor keeps loosing the item , as you can view at link above , Forcing me to keep going back and Grabbing .item again & again . Else I have to Drag at a sloth's pace . Source-Code :

    Guitar-Scales-and-Boxes-Builder-1-Note-4-Frets-FORUM.html
    body {
    margin: 20px;
    background-color: #FFFFFF;
    }
    .flex-container {
    display: flex;
    }

    .flex-container > div {
    font-size: 20px;
    }
    #container {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    counter-reset: itemCount;
    }
    .item {
    display: inline-block;
    border-radius: 50%;
    touch-action: none;
    user-select: none;
    counter-increment: itemCount;
    content: 'count' + itemCount;
    width: 32px;
    height: 32px;
    background-color: #F5F5F5; // whitesmoke
    font-family: Arial, Helvetica, sans-serif;
    text-align:center;
    font-size:28px;
    z-index: 8;
    }

    .flatOne , sharpOne , naturalOne { background-color: #DCDCDC;
    z-index: 5;
    }

    #itemContainer { }
    #tableContainer { }
    #fretboardContainer { background-color: #DCDCDC;
    }
    tbody { background-color:#636363;
    }
    #tbodyId { background-color:#636363;
    }
    .item:active {
    opacity: .75;
    }
    .item:hover {
    cursor: pointer;
    }

    X:
    Y:

    b

    1

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups