mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
26 lines
588 B
TypeScript
26 lines
588 B
TypeScript
import { ComponentMetadata } from '@/components/types'
|
|
import { playerUrls } from '@/core/utils/urls'
|
|
import desc from './desc.md'
|
|
import { entry } from './entry'
|
|
|
|
export const component: ComponentMetadata = {
|
|
name: 'touchPlayerGestures',
|
|
displayName: '播放器触摸手势',
|
|
enabledByDefault: navigator.maxTouchPoints > 0,
|
|
tags: [
|
|
componentsTags.touch,
|
|
],
|
|
description: {
|
|
'zh-CN': desc,
|
|
},
|
|
entry,
|
|
urlInclude: playerUrls,
|
|
options: {
|
|
swiperDistance: {
|
|
displayName: '手势触发最小距离',
|
|
defaultValue: 10,
|
|
hidden: true,
|
|
},
|
|
},
|
|
}
|