mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-30 07:27:54 +02:00
fix clipped tooltips on controls bar (#8791)
* controls: add wrapper div to not clip tooltips * bind wheel to controlsWrap minor z-index change * scrollbar for ie/firefox Co-authored-by: Milos Brzakovic (E-Search) <mbrzakovic@microsoft.com>
This commit is contained in:
+7
-3
@@ -182,7 +182,11 @@ export function uiInit(context) {
|
||||
.call(uiSpinner(context));
|
||||
|
||||
// Map controls
|
||||
var controls = overMap
|
||||
var controlsWrap = overMap
|
||||
.append('div')
|
||||
.attr('class', 'map-controls-wrap');
|
||||
|
||||
var controls = controlsWrap
|
||||
.append('div')
|
||||
.attr('class', 'map-controls');
|
||||
|
||||
@@ -201,9 +205,9 @@ export function uiInit(context) {
|
||||
.attr('class', 'map-control geolocate-control')
|
||||
.call(uiGeolocate(context));
|
||||
|
||||
controls.on('wheel.mapControls', function(d3_event) {
|
||||
controlsWrap.on('wheel.mapControls', function(d3_event) {
|
||||
if (!d3_event.deltaX) {
|
||||
controls.node().scrollTop += d3_event.deltaY;
|
||||
controlsWrap.node().scrollTop += d3_event.deltaY;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user