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 f44b386 commit a343046
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 @@ -28,7 +28,7 @@ <h3 class="box-title">[[title]]</h3>

function mouseMovementHandler(e) {
// Apply position: 'absolute' after the page is loaded
//draggable.style.position = 'absolute';
draggable.style.position = 'static';
draggable.style.left = `${e.clientX - offsetX}px`;
draggable.style.top = `${e.clientY - offsetY}px`;
}
Expand Down

0 comments on commit a343046

Please sign in to comment.