Risolto errore nel Pan della bacheca.
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
42
README.md
42
README.md
@@ -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.
|
|
||||||
@@ -15,7 +15,11 @@
|
|||||||
<section
|
<section
|
||||||
class="board"
|
class="board"
|
||||||
role="application"
|
role="application"
|
||||||
onpointerdown={onStartPan}
|
ondragstart={(e) => { 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;`}
|
style={`--board-width:${BOARD_WIDTH}px; --board-height:${BOARD_HEIGHT}px; --grid-size:${BOARD_GRID_SIZE}px;`}
|
||||||
>
|
>
|
||||||
{#each notes as note (note.id)}
|
{#each notes as note (note.id)}
|
||||||
@@ -25,6 +29,7 @@
|
|||||||
role="button"
|
role="button"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
onpointerdown={(event) => {
|
onpointerdown={(event) => {
|
||||||
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
onStartDrag(event, note.id);
|
onStartDrag(event, note.id);
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -129,7 +129,8 @@
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div class="board-viewport" bind:this={viewportEl} onscroll={updateViewportMetrics}>
|
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
||||||
|
<div class="board-viewport" bind:this={viewportEl} onscroll={updateViewportMetrics} ondragstart={(e) => {e.preventDefault()}}>
|
||||||
<div class="top-composer-shell">
|
<div class="top-composer-shell">
|
||||||
<div class="top-composer">
|
<div class="top-composer">
|
||||||
<Navbar onCreate={handleCreate} />
|
<Navbar onCreate={handleCreate} />
|
||||||
|
|||||||
Reference in New Issue
Block a user