即将上映恢复长按菜单

This commit is contained in:
mtvpls
2026-02-08 14:32:11 +08:00
parent 4901e2c569
commit 30c3fe1910
+1 -11
View File
@@ -382,11 +382,6 @@ const VideoCard = forwardRef<VideoCardHandle, VideoCardProps>(function VideoCard
// 长按操作 // 长按操作
const handleLongPress = useCallback(() => { const handleLongPress = useCallback(() => {
// 即将上映的电影不显示操作菜单
if (isUpcoming) {
return;
}
if (!showMobileActions) { // 防止重复触发 if (!showMobileActions) { // 防止重复触发
// 立即显示菜单,避免等待数据加载导致动画卡顿 // 立即显示菜单,避免等待数据加载导致动画卡顿
setShowMobileActions(true); setShowMobileActions(true);
@@ -396,7 +391,7 @@ const VideoCard = forwardRef<VideoCardHandle, VideoCardProps>(function VideoCard
checkSearchFavoriteStatus(); checkSearchFavoriteStatus();
} }
} }
}, [isUpcoming, showMobileActions, from, isAggregate, actualSource, actualId, searchFavorited, checkSearchFavoriteStatus]); }, [showMobileActions, from, isAggregate, actualSource, actualId, searchFavorited, checkSearchFavoriteStatus]);
// 长按手势hook // 长按手势hook
const longPressProps = useLongPress({ const longPressProps = useLongPress({
@@ -682,11 +677,6 @@ const VideoCard = forwardRef<VideoCardHandle, VideoCardProps>(function VideoCard
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
// 即将上映的电影不显示操作菜单
if (isUpcoming) {
return false;
}
// 右键弹出操作菜单 // 右键弹出操作菜单
setShowMobileActions(true); setShowMobileActions(true);