We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59ed325 commit aef5a80Copy full SHA for aef5a80
src/mapml/layers/MapLayer.js
@@ -541,7 +541,7 @@ export var MapMLLayer = L.Layer.extend({
541
// Fixes flickering by only moving element when there is enough space
542
let offset = moveEvent.clientY - yPos;
543
moving = Math.abs(offset) > 5 || moving;
544
- if(controls && !moving ||
+ if( (controls && !moving) || (controls && controls.childElementCount <= 1) ||
545
controls.getBoundingClientRect().top > control.getBoundingClientRect().bottom ||
546
controls.getBoundingClientRect().bottom < control.getBoundingClientRect().top){
547
return;
0 commit comments