Merge pull request #3233 from juliensoret/grabbingCursor
Fix cursor when dragging is set to false.
This commit is contained in:
commit
b849568ca0
7
dist/leaflet.css
vendored
7
dist/leaflet.css
vendored
@ -180,7 +180,7 @@
|
|||||||
.leaflet-interactive {
|
.leaflet-interactive {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.leaflet-container {
|
.leaflet-grab {
|
||||||
cursor: -webkit-grab;
|
cursor: -webkit-grab;
|
||||||
cursor: -moz-grab;
|
cursor: -moz-grab;
|
||||||
}
|
}
|
||||||
@ -192,8 +192,9 @@
|
|||||||
.leaflet-control {
|
.leaflet-control {
|
||||||
cursor: auto;
|
cursor: auto;
|
||||||
}
|
}
|
||||||
.leaflet-dragging .leaflet-container,
|
.leaflet-dragging .leaflet-grab,
|
||||||
.leaflet-dragging .leaflet-interactive {
|
.leaflet-dragging .leaflet-grab .leaflet-interactive,
|
||||||
|
.leaflet-dragging .leaflet-marker-draggable {
|
||||||
cursor: move;
|
cursor: move;
|
||||||
cursor: -webkit-grabbing;
|
cursor: -webkit-grabbing;
|
||||||
cursor: -moz-grabbing;
|
cursor: -moz-grabbing;
|
||||||
|
@ -35,10 +35,12 @@ L.Map.Drag = L.Handler.extend({
|
|||||||
map.whenReady(this._onViewReset, this);
|
map.whenReady(this._onViewReset, this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
L.DomUtil.addClass(this._map._container, 'leaflet-grab');
|
||||||
this._draggable.enable();
|
this._draggable.enable();
|
||||||
},
|
},
|
||||||
|
|
||||||
removeHooks: function () {
|
removeHooks: function () {
|
||||||
|
L.DomUtil.removeClass(this._map._container, 'leaflet-grab');
|
||||||
this._draggable.disable();
|
this._draggable.disable();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user