title: Finding center of Leaflet.js map after mouse move
body: <p>I would like to detect after user move where the center of the map is. Currently I have this piece of code responsible for detecting what is the latitude and longitude of beginning of the mouse move:</p>
  
  <pre><code>var lat, lng;
  
      mymap.addEventListener('mousemove', function(ev) {
         lat = ev.latlng.lat;
         lng = ev.latlng.lng;
      });
  
      document.getElementById("mapid").addEventListener("click", function (event) {
          console.log(lat + ' - ' + lng);
  
          return false;
      });
  </code></pre>
  
  <p>Unfortunately it is not working as I'd imagine. I tried to find some event responsible for stopping of moving and beside drag end event which is only for markers, not just move I couldn't find such. Also the second problem would be then - how to detect the center of map.</p>
  
  <p>Does anyone has any solution for this?</p>