From 693990d9fb5d92523da5bc0c214c56c234058d3f Mon Sep 17 00:00:00 2001 From: hexin-codex-bot Date: Thu, 8 Oct 2026 15:20:27 +0800 Subject: [PATCH] fix: enable mobile swipe through playback layer and sound control --- pages/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/index.tsx b/pages/index.tsx index bc8bfa0..793b158 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -1,6 +1,6 @@ import Head from 'next/head'; import { useCallback, useEffect, useRef, useState } from 'react'; -import { Heart, MessageCircle, Bookmark, Share2, Plus, Play, Pause, Volume2, VolumeX, ChevronUp, ChevronDown, Search, Home, Compass, Users, Music2, Maximize, X, Check, MapPin, Send, ArrowUpRight, TvMinimal, Ellipsis, UserRound } from 'lucide-react'; +import { Heart, MessageCircle, Bookmark, Share2, Plus, Play, Pause, Volume2, VolumeX, ChevronUp, ChevronDown, Search, Home, Compass, Users, Music2, Maximize, X, Check, MapPin, Send, ArrowUpRight, UserRound } from 'lucide-react'; import { videos, compact } from '../lib/videos'; type Reaction = { liked?:boolean; saved?:boolean; followed?:boolean }; type Comment = {name:string; text:string}; @@ -26,10 +26,10 @@ export default function Feed(){
FOR YOU

发现生活的另一面精选推荐

偶遇一个好瞬间
-
{touch.current={x:e.touches[0].clientX,y:e.touches[0].clientY};}} onTouchEnd={e=>{if(panel||(e.target as HTMLElement).closest('button,input'))return;const dy=e.changedTouches[0].clientY-touch.current.y,dx=e.changedTouches[0].clientX-touch.current.x;if(Math.abs(dy)>55&&Math.abs(dy)>Math.abs(dx))next(dy<0?1:-1);}}> +
{touch.current={x:e.touches[0].clientX,y:e.touches[0].clientY};}} onTouchEnd={e=>{if(panel||(e.target as HTMLElement).closest('button:not(.video-hit),input'))return;const dy=e.changedTouches[0].clientY-touch.current.y,dx=e.changedTouches[0].clientX-touch.current.x;if(Math.abs(dy)>55&&Math.abs(dy)>Math.abs(dx)){e.preventDefault();next(dy<0?1:-1);}}}>
+
今日精选{item.location}
{!playing&&!error&&}{burst&&}{error&&
视频暂时无法加载
}