mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-05-17 11:07:30 +08:00
fix: adjust long tap
This commit is contained in:
@@ -1209,7 +1209,16 @@ function PlayPageClient() {
|
|||||||
const handleTouchStart = (e: TouchEvent) => {
|
const handleTouchStart = (e: TouchEvent) => {
|
||||||
// 防止在控制栏区域触发
|
// 防止在控制栏区域触发
|
||||||
const target = e.target as HTMLElement;
|
const target = e.target as HTMLElement;
|
||||||
if (target.closest('.art-controls') || target.closest('.art-contextmenu')) {
|
if (
|
||||||
|
target.closest('.art-controls') ||
|
||||||
|
target.closest('.art-contextmenu') ||
|
||||||
|
target.closest('.art-layer')
|
||||||
|
) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 仅在播放时触发
|
||||||
|
if (artPlayerRef.current?.video?.paused) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user