---
layout: api
title: "v3.2.0 JavaScript Library: L.Draggable"
categories: api
version: v3.2.0
permalink: /api/v3.2.0/l-draggable/
---
<h2 id="draggable">Draggable</h2>

<p>A class for making DOM elements draggable (including touch support). Used internally for map and marker dragging. Only works for elements that were positioned with <a href="/mapbox.js/api/v3.2.0/l-domutil">DomUtil#setPosition</a></p>

<pre><code class="javascript">var draggable = new L.Draggable(elementToDrag);
draggable.enable();
