title: How to listen to mousedown, mousemove and mouseup in a Backbonejs view method
body: <p>I'd like to be able to drag a div element inside a Backbone view. To do that, I would need to listen to these three events mouseup, mousedown, mousemove inside a Backbone View method.</p>
  
  <pre><code>    events: {
          "mousedown .status .progress .seek-bar .seek-bar-grip": "slide",
          "mouseup .status .progress .seek-bar .seek-bar-grip": "slide",
          "mousemove .status .progress .seek-bar .seek-bar-grip": "slide",
      },
  
      slide: function(event) {
  
          // Code about the drag here
  
      },
  </code></pre>
  
  <p>This won't work because each time an other event is fired, it will call the method again. My question is not how to drag a div element in javascript but how could I listen to these 3 events in the slide method.</p>