canvas-website/src/hooks
Jeff Emmett b3bb17d2be fix: properly reset pin state to prevent shape jumping on re-pin
When pinning a shape again after unpinning, leftover state from the
previous session was causing the shape to jump/resize unexpectedly.

Changes:
- Add clearPinState() helper to reset all refs and cancel animations
- Add cleanShapeMeta() helper to remove all pin-related meta properties
- Clear all state immediately when pinning starts (before setting new state)
- Clear refs immediately when unpinning (not in setTimeout)
- Remove pinnedAtZoom from meta cleanup (legacy from CSS scaling)
- Don't call updatePinnedPosition() on pin start - shape is already
  at correct position, only need to listen for future camera changes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-16 19:57:21 -05:00
..
useAdvancedSpeakerDiarization.ts everything working in dev 2025-11-10 11:06:13 -08:00
useCameraControls.ts fix zoom & videochat 2025-09-01 09:44:52 +02:00
useLiveImage.tsx feat: add Drawfast tool, improve share UI, and various UI enhancements 2025-12-15 00:03:12 -05:00
useMaximize.ts feat: add version history, Resend email, CryptID registration flow 2025-12-10 14:21:50 -08:00
usePinnedToView.ts fix: properly reset pin state to prevent shape jumping on re-pin 2025-12-16 19:57:21 -05:00
usePrivateWorkspace.ts feat: Add GoogleItemShape with privacy badges (Phase 4) 2025-12-04 17:52:54 -08:00
useWebSpeechTranscription.ts update to fix vercel and cloudflare errors 2025-11-10 11:30:33 -08:00
useWhisperTranscriptionSimple.ts fix: resolve TypeScript errors for Cloudflare Pages build 2025-11-29 21:51:54 -08:00