File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -355,6 +355,6 @@ summary {
355
355
visibility : unset!important ;
356
356
}
357
357
358
- .mapml-draggable {
358
+ .mapml-draggable * {
359
359
cursor : row-resize;
360
360
}
Original file line number Diff line number Diff line change @@ -543,10 +543,7 @@ export var MapMLLayer = L.Layer.extend({
543
543
controls . getBoundingClientRect ( ) . top > control . getBoundingClientRect ( ) . top ||
544
544
controls . getBoundingClientRect ( ) . bottom < control . getBoundingClientRect ( ) . bottom ) return ;
545
545
546
- for ( let c of controls . children ) {
547
- c . querySelector ( "summary" ) . classList . add ( "mapml-draggable" ) ;
548
- }
549
-
546
+ controls . classList . add ( "mapml-draggable" ) ;
550
547
let x = moveEvent . clientX , y = moveEvent . clientY ,
551
548
elementAt = root . elementFromPoint ( x , y ) ,
552
549
swapControl = ! elementAt || ! elementAt . closest ( "fieldset" ) ? control : elementAt . closest ( "fieldset" ) ;
@@ -574,10 +571,11 @@ export var MapMLLayer = L.Layer.extend({
574
571
viewer . insertAdjacentElement ( "beforeend" , layerEl ) ;
575
572
layerEl . removeAttribute ( "data-moving" ) ;
576
573
577
- c . querySelector ( "summary" ) . classList . remove ( "mapml-draggable" ) ;
574
+
578
575
layerEl . _layer . setZIndex ( zIndex ) ;
579
576
zIndex ++ ;
580
577
}
578
+ controls . classList . remove ( "mapml-draggable" ) ;
581
579
document . body . onmousemove = document . body . onmouseup = null ;
582
580
} ;
583
581
} ;
You can’t perform that action at this time.
0 commit comments