Fix cursor when dragging is set to false.
This commit is contained in:
parent
a998f9b6c8
commit
03fb73ed22
6
dist/leaflet.css
vendored
6
dist/leaflet.css
vendored
@ -179,7 +179,7 @@
|
||||
.leaflet-interactive {
|
||||
cursor: pointer;
|
||||
}
|
||||
.leaflet-container {
|
||||
.leaflet-grab {
|
||||
cursor: -webkit-grab;
|
||||
cursor: -moz-grab;
|
||||
}
|
||||
@ -191,8 +191,8 @@
|
||||
.leaflet-control {
|
||||
cursor: auto;
|
||||
}
|
||||
.leaflet-dragging .leaflet-container,
|
||||
.leaflet-dragging .leaflet-interactive {
|
||||
.leaflet-dragging .leaflet-grab,
|
||||
.leaflet-dragging .leaflet-grab .leaflet-interactive {
|
||||
cursor: move;
|
||||
cursor: -webkit-grabbing;
|
||||
cursor: -moz-grabbing;
|
||||
|
@ -35,10 +35,12 @@ L.Map.Drag = L.Handler.extend({
|
||||
map.whenReady(this._onViewReset, this);
|
||||
}
|
||||
}
|
||||
L.DomUtil.addClass(this._map._container, 'leaflet-grab');
|
||||
this._draggable.enable();
|
||||
},
|
||||
|
||||
removeHooks: function () {
|
||||
L.DomUtil.removeClass(this._map._container, 'leaflet-grab');
|
||||
this._draggable.disable();
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user