title: Restrict map panning to an area in Leaflet
body: <p>I want the same behavior shown in <a href="https://www.mapbox.com/mapbox-gl-js/example/restrict-bounds/" rel="nofollow noreferrer">this Mapbox example</a> but using Leaflet 0.7.7 because of dependency on plugins not compatible with 1.0.</p>
  
  <p>I know <a href="http://leafletjs.com/reference-1.0.3.html#map-panning-inertia-options" rel="nofollow noreferrer">maxBoundsViscosity option</a> in Leaflet 1.0 and looks like Mapbox API uses it with value 1.0 to restrict the area. </p>
  
  <p>Any change to implement this behavior in Leaflet 0.7.7? I need solid bounds without bouncing the user back like maxBounds option does.</p>