cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-08-22 20:27:52 +03:00
parent e1881b85c6
commit f7ea76ec6e

View File

@ -13,12 +13,6 @@
// This compansates for any resize rounding errors in patchFlexRows(..).
var PATCH_MARGIN = 2
// a timeout to let the resize settle before we handle dragover...
// XXX this is too long -- we can pickup and drag an image within this
// timeout...
// need to make it more specific (handle only vertical drag???)
var RESIZE_SETTLE_TIMEOUT = 16
//---------------------------------------------------------------------
// Generic stuff...
@ -517,6 +511,12 @@ var Gallery = {
// XXX remove this when/if the selected options feels natural...
vertical_navigate_mode: 'intersection',
// a timeout to let the resize settle before we handle dragover...
// XXX this is too long -- we can pickup and drag an image within this
// timeout...
// need to make it more specific (handle only vertical drag???)
resize_settle_timeout: 16,
code: `
<div class="gallery">
<!-- gallery: content -->
@ -1165,7 +1165,7 @@ var Gallery = {
// after) resize...
skip_dragover = true
setTimeout(function(){
skip_dragover = false }, RESIZE_SETTLE_TIMEOUT)
skip_dragover = false }, that.resize_settle_timeout)
that
.__update_grid_size()
.updateMarkers()