Skip to content

Commit

Permalink
Prevent highlight on drag
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronPlave committed Dec 19, 2024
1 parent 8e1bb93 commit b6b8479
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/timeline/RowHeaderDragHandleWidth.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@
function onMouseDown(): void {
document.addEventListener('mousemove', onMouseMove, false);
document.body.classList.add('prevent-selection');
}
function onMouseUp(): void {
document.removeEventListener('mousemove', onMouseMove, false);
document.body.classList.remove('prevent-selection');
}
</script>

Expand All @@ -51,6 +53,9 @@
</div>

<style>
:global(.prevent-selection) {
user-select: none;
}
.row-header-drag-handle-width {
height: 100%;
pointer-events: none;
Expand Down

0 comments on commit b6b8479

Please sign in to comment.