mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-22 05:11:20 -08:00
separate variable constants
This commit is contained in:
1 parent
57a14f63ac
commit
fc3abd7d1d
20 files changed
+143
-80
No files matched your search
@@ -2,6 +2,7 @@ import { includeFromEvent, isMobile } from '../utils';
|
||||
|
||||
export default function clickInit(art, events) {
|
||||
const {
|
||||
constructor,
|
||||
template: { $player, $video },
|
||||
} = art;
|
||||
|
||||
@@ -19,7 +20,7 @@ export default function clickInit(art, events) {
|
||||
events.proxy($video, 'click', () => {
|
||||
const now = Date.now();
|
||||
|
||||
if (now - clickTime <= 300) {
|
||||
if (now - clickTime <= constructor.DB_CLICE_TIME) {
|
||||
art.emit('dblclick');
|
||||
|
||||
if (isMobile) {
|
||||
|
||||
Reference in new issue
Block a user