Skip to content

Commit

Permalink
Fixed #200, scrolling canvas only in free layout
Browse files Browse the repository at this point in the history
  • Loading branch information
amyjko committed Oct 14, 2023
1 parent 210c50a commit fc782cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/project/ProjectView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -1167,6 +1167,7 @@
<main class="project" bind:this={view}>
<div
class="canvas"
class:free={$arrangement === Arrangement.Free}
on:pointerdown|stopImmediatePropagation|stopPropagation={handlePointerDown}
on:pointerup={handlePointerUp}
on:pointermove={handlePointerMove}
Expand Down Expand Up @@ -1494,6 +1495,10 @@
.canvas {
flex: 1;
}
/** If in free layout mode, allow scrolling of content */
.canvas.free {
overflow: auto;
}
Expand Down

0 comments on commit fc782cd

Please sign in to comment.