Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fix drag and drop to change layer order not working on desktop - Add `cursorAt` parameter, with a value of bottom: 20 to jQuery sortable. * Note: 20 is half of the value of the layer's min-height ensuring it always can be dragged below the smallest layer. Connects to #680

ZachTRice5bb4d3c1f467
diff --git a/web/js/layers/active.js b/web/js/layers/active.js
index 05cd71637..a37cb4a6b 100644
--- a/web/js/layers/active.js
+++ b/web/js/layers/active.js
@@ -88,7 +88,8 @@ export function layersActive(models, ui, config) {
axis: 'y',
containment: 'parent',
tolerance: 'pointer',
- placeholder: 'state-saver'
+ placeholder: 'state-saver',
+ cursorAt: { bottom: 20 }
});
$('.layer-container ul.category li')
.disableSelection();