notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
5c9116b9d1
commit
1061323d8b
@ -773,6 +773,8 @@ var Gallery = {
|
|||||||
dragged = evt.target
|
dragged = evt.target
|
||||||
dragged.classList.add('dragging') } })
|
dragged.classList.add('dragging') } })
|
||||||
var skip_dragover = false
|
var skip_dragover = false
|
||||||
|
// XXX do we .__update_grid_size() live (current) or after the
|
||||||
|
// drag is over???
|
||||||
this.dom
|
this.dom
|
||||||
.addEventListener('dragenter', function(evt){
|
.addEventListener('dragenter', function(evt){
|
||||||
// NOTE: this prevents jumping back and forth if moving
|
// NOTE: this prevents jumping back and forth if moving
|
||||||
@ -800,13 +802,15 @@ var Gallery = {
|
|||||||
}) } })
|
}) } })
|
||||||
// check if we just went out of the edge image...
|
// check if we just went out of the edge image...
|
||||||
// NOTE: this handles a special case:
|
// NOTE: this handles a special case:
|
||||||
// when a narrow image is at the edge and the adjacent image
|
// |[A][ B ][C] |
|
||||||
// is wide. dragging the narrow image over the wide places
|
// when a narrow image (A, C) is at the edge and the
|
||||||
// it at the other side ow the wide image but the cursor is
|
// adjacent image is wide (b).
|
||||||
// now over the wide image so to drag back we either need
|
// dragging the narrow image over the wide places it at
|
||||||
// to exit it and drag over again (not intuitive) or simply
|
// the other side of the wide image but the cursor is now
|
||||||
// drag over the oppoiste edge of the wide image (dragleave
|
// over the wide image so to drag back we either need to
|
||||||
// handler)
|
// drag out of it and drag over again (not intuitive) or
|
||||||
|
// simply drag over the oppoiste edge of the wide image
|
||||||
|
// (dragleave handler)
|
||||||
// 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...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user