Skip to content

Commit

Permalink
Make plots draggable
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrikBuetler committed Jun 11, 2024
1 parent 1d8adef commit 6ab2bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/builder/plotbox.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h3 class="box-title">[[title]]</h3>
</div>
<script>
document.addEventListener('DOMContentLoaded', (event) => {
let draggables = document.querySelectorAll('.draggable');
let draggables = document.querySelectorAll('.drag');
draggables.forEach(draggable => {
draggable.addEventListener('mousedown', function (e) {
e.preventDefault();
Expand Down

0 comments on commit 6ab2bf7

Please sign in to comment.