Skip to content

Commit

Permalink
Fix box selection
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaitanLyss committed Sep 4, 2024
1 parent 3e1cd72 commit d8a625a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@selenite/commons",
"version": "0.23.8",
"version": "0.23.9",
"repository": "github:ShaitanLyss/selenite-commons",
"license": "MIT",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/lib/actions/box-selection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export const boxSelection: Action<HTMLElement, BoxSelectionParams | undefined> =
}

function pMove(e: PointerEvent) {
stopPropagation(e);
if (!box) return;
stopPropagation(e);
setBoxPos(startPos!, posFromClient(e));
}

Expand Down
2 changes: 1 addition & 1 deletion src/routes/box-selection/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
}}
class="bg-base-200 h-[50rem] w-[80rem] relative select-none overflow-clip cursor-move">
<div bind:this={holder} class="h-full w-full" use:draggable>
<div bind:this={holder} class="h-full w-full relative" use:draggable>
{#snippet Button(label: string, x: number, y: number)}
<button
type="button"
Expand Down

0 comments on commit d8a625a

Please sign in to comment.