question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Completly hide ghost image

See original GitHub issue

Can i hide ghost image? As i understand i can set

.sortable-chosen {
    opacity: 0;
}
.sortable-ghost {
  background-color: #dadada;
  opacity: 1;
}

but there is one glitch - when i click on element for dragging, but without moving, it’s hided via .sortable-chosen and has not yet .sortable-ghost class.

example http://jsbin.com/poperakusa/edit?html,css,js,output just click on list item without drag

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
dovidcommented, Jun 15, 2016

This seemed to work nicely for me.

.sortable-ghost { opacity: 0; }

1reaction
kriscookecommented, Dec 22, 2015
.sortable-chosen, sortable-chosen.sortable-ghost {
    opacity: 0;
}
.sortable-ghost {
  background-color: #dadada;
  opacity: 1;
}

http://jsbin.com/velenizega/1/edit?html,css,js,output

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to remove drag(Ghost) image? - javascript - Stack Overflow
I am not hiding the node completely, so you can see what is happening. var dragMe = document.getElementById("drag-me"); dragMe.
Read more >
How to prevent dragging of ghost image ? - GeeksforGeeks
While clicking on an image on a web page and trying to drag it from one point to another, often a replica of...
Read more >
Setting a custom ghost image when using HTML5 drag and drop
There are a bunch of ways of hiding an element. display: none , visibility: hidden , position: absolute and then move it off-screen,...
Read more >
Unsighted ghost imaging for objects completely hidden inside ...
This scheme enables GI to non-invasively image an object completely hidden inside opaque media. In the next section, we demonstrate a GI ...
Read more >
Removing Ghost Images From Screens - YouTube
Watch Todd from Lawson Screen and Digital Products remove a ghost ... ID-360 is a totally unique screen printing supply chemical as it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found