Skip to content

feat(web): add interactive drag-follow wipe gestures to images, videos, and comics - #23

Merged
duaL-Astriel merged 3 commits into
mainfrom
add_wipe_gestures
Nov 17, 2026
Merged

duaL-Astriel merged 3 commits into
mainfrom
add_wipe_gestures

Conversation

@duaL-Astriel

Copy link
Copy Markdown
Owner

Summary

  • Added a shared drag-follow wipe gesture helper and transition controller in apps/web-svelte/src/lib/gestures/wipe-gesture.ts (axis locking, boundary resistance, velocity/distance/viewport-extent commit, adjacent preview positioning, and prefersReducedMotion() support).
  • Wired live horizontal navigation and downward-dismiss wipe gestures into UniversalLightbox (still images, zoomed pan boundaries, and lightbox videos while excluding timeline/control strips and cleanly resetting click suppression on pointerdown/pointercancel).
  • Wired live horizontal page-turn and downward-dismiss wipe gestures into ComicReader (paged mode, respecting RTL reading order, double-page spreads, fit-to-width/fit-to-height scroll boundaries, and chapter-end actions).
  • Updated CHANGELOG.md under ## [Unreleased] → ### Added.

Verification

  • node scripts/release/check-version.mjs (version 3.10.0): passed
  • pnpm --filter @prismedia/web-svelte lint (svelte-check): 0 errors, 0 warnings
  • vitest (wipe-gesture.test.ts, UniversalLightbox.test.ts, universal-lightbox-zoom.test.ts, ComicReader.test.ts, comic-reader.test.ts): 5 files passed, 109/109 tests passed

# Conflicts:
#	CHANGELOG.md
#	apps/web-svelte/src/lib/components/ComicReader.svelte
#	apps/web-svelte/src/lib/components/ComicReader.test.ts
#	apps/web-svelte/src/lib/components/UniversalLightbox.svelte
#	apps/web-svelte/src/lib/components/UniversalLightbox.test.ts
@duaL-Astriel
duaL-Astriel merged commit c295db5 into main Nov 17, 2026
3 checks passed
@duaL-Astriel
duaL-Astriel deleted the add_wipe_gestures branch November 17, 2026 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant