Compare commits

..

No commits in common. "a5f42a2ff1bf9c4df4b78c18d7cad75e76c34b1c" and "ebfb04845a53873e8165142970bbb54f821e5b89" have entirely different histories.

View File

@ -1180,13 +1180,9 @@ var Gallery = {
// NOTE: we are not implementing the whole drag process here // NOTE: we are not implementing the whole drag process here
// because dragging up/down here is far more complicated // because dragging up/down here is far more complicated
// than when doing it in dragover... // than when doing it in dragover...
// XXX might be a good idea when dragged is null (dragging in files)
// to place a placeholder between images instead of styling
// the image below...
this.dom this.dom
.addEventListener('dragleave', function(evt){ .addEventListener('dragleave', function(evt){
if(!dragged if(skip_dragover){
|| skip_dragover){
return } return }
var target = evt.target var target = evt.target
var images = that.images var images = that.images
@ -1199,7 +1195,7 @@ var Gallery = {
// adjacent image is not on the same offsetTop (edge) // adjacent image is not on the same offsetTop (edge)
if(prev == null if(prev == null
|| prev.offsetTop != target.offsetTop){ || prev.offsetTop != target.offsetTop){
target.efore(dragged) target.before(dragged)
that.updateMarkers() } that.updateMarkers() }
// right edge... // right edge...
} else { } else {