Skip to content

new conf design — gallery strip #1999

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
May 21, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add touch-pan-y
  • Loading branch information
hasparus committed May 21, 2025
commit b945da971e93b8bfd57193ebf93fbd7196bfc99c
2 changes: 1 addition & 1 deletion src/app/conf/2025/components/gallery-strip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function GalleryStrip({ className, ...rest }: GalleryStripProps) {
speed={35}
drag
reverse
className="cursor-[var(--cursor-grabbing,grab)] !overflow-visible"
className="cursor-[var(--cursor-grabbing,grab)] touch-pan-y"
>
{imagesByYear[selectedYear].map((image, i) => {
const key = `${selectedYear}-${i}`
Expand Down
4 changes: 4 additions & 0 deletions src/app/conf/_design-system/marquee.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ export function Marquee({
document.documentElement.style.cursor = "initial"
document.documentElement.style.removeProperty("--cursor-grabbing")
},
onDragEnd: () => {
setIsTransitioning(true)
setCurrentSpeed(speed)
},
dragConstraints:
direction === "horizontal"
? {
Expand Down