Commit 030732e
fix(snap): import
`e9a5cc8e` extracted the snap math to `snap.ts` and *re-exported* `findSnap`
(`export { findSnap } from './snap'`) but never imported it for local use, while
`applySnap` calls it. A re-export creates no local binding, so every drag that
reached `applySnap` threw `ReferenceError: findSnap is not defined` — snap-to
guides were silently broken in the dev editor. Add `findSnap` to the local import
(the re-export stays for external callers). Surfaced by the rewritten v-drag E2E.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>findSnap into useDragElements (snap threw at runtime)1 parent 6d33f3a commit 030732e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
0 commit comments