From c1e00e0d2a2fea8df2b9bd8a073bb71383ef8d65 Mon Sep 17 00:00:00 2001 From: Mancee28 Date: Sat, 21 Mar 2026 00:54:29 +0100 Subject: [PATCH] Risolto errore nel Pan della bacheca. --- AGENTS.md | 3 +- README.md | 42 --------------------- src/lib/components/board/BoardCanvas.svelte | 7 +++- src/routes/+page.svelte | 3 +- 4 files changed, 10 insertions(+), 45 deletions(-) delete mode 100644 README.md diff --git a/AGENTS.md b/AGENTS.md index d725619..4f39e8e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1 +1,2 @@ -- Puoi modificare direttamente i tag e lo stile di componenti e pagine, non puoi modificare la sezione di codice spontaneamente. +- NON PUOI MODIFICARE DIRETTAMENTE NESSUN FILE. +- RIFERISCITI SEMPRE ALLA DOCUMENTAZIONE DI SVELTE 5. diff --git a/README.md b/README.md deleted file mode 100644 index 8c45040..0000000 --- a/README.md +++ /dev/null @@ -1,42 +0,0 @@ -# sv - -Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli). - -## Creating a project - -If you're seeing this, you've probably already done this step. Congrats! - -```sh -# create a new project -npx sv create my-app -``` - -To recreate this project with the same configuration: - -```sh -# recreate this project -npx sv@0.12.8 create --template minimal --types ts --add sveltekit-adapter="adapter:auto" drizzle="database:sqlite+sqlite:libsql" better-auth="demo:password" devtools-json --install npm ./ -``` - -## Developing - -Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: - -```sh -npm run dev - -# or start the server and open the app in a new browser tab -npm run dev -- --open -``` - -## Building - -To create a production version of your app: - -```sh -npm run build -``` - -You can preview the production build with `npm run preview`. - -> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment. diff --git a/src/lib/components/board/BoardCanvas.svelte b/src/lib/components/board/BoardCanvas.svelte index 4f5c5c4..c0e06be 100644 --- a/src/lib/components/board/BoardCanvas.svelte +++ b/src/lib/components/board/BoardCanvas.svelte @@ -15,7 +15,11 @@
{ e.preventDefault()}} + onpointerdown={(event) => { + event.preventDefault(); + onStartPan(event); + }} style={`--board-width:${BOARD_WIDTH}px; --board-height:${BOARD_HEIGHT}px; --grid-size:${BOARD_GRID_SIZE}px;`} > {#each notes as note (note.id)} @@ -25,6 +29,7 @@ role="button" tabindex="0" onpointerdown={(event) => { + event.preventDefault(); event.stopPropagation(); onStartDrag(event, note.id); }} diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 4358774..2d2610d 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -129,7 +129,8 @@ }} /> -
+ +
{e.preventDefault()}}>