mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-30 03:39:36 +02:00
Merge pull request #8685 from openstreetmap/mapControl-scroll
MapControl scroll
This commit is contained in:
@@ -201,6 +201,12 @@ export function uiInit(context) {
|
||||
.attr('class', 'map-control geolocate-control')
|
||||
.call(uiGeolocate(context));
|
||||
|
||||
controls.on('wheel.mapControls', function(d3_event) {
|
||||
if (!d3_event.deltaX) {
|
||||
controls.node().scrollTop += d3_event.deltaY;
|
||||
}
|
||||
});
|
||||
|
||||
// Add panes
|
||||
// This should happen after map is initialized, as some require surface()
|
||||
var panes = overMap
|
||||
|
||||
Reference in New Issue
Block a user