Skip to content

Commit d15ed7a

Browse files
committed
pref: 进度条新增 padding-top 样式,防止点击进度条误触暂停
1 parent f1fcbd7 commit d15ed7a

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

docs/assets/ts/artplayer.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,7 @@ export interface CssVar {
799799
'--art-border-radius': string
800800
'--art-progress-height': string
801801
'--art-progress-color': string
802+
'--art-progress-top-gap': string
802803
'--art-hover-color': string
803804
'--art-loaded-color': string
804805
'--art-state-size': string

packages/artplayer/src/style/progress.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
position: relative;
44
z-index: 0;
55
pointer-events: auto;
6+
padding-top: var(--art-progress-top-gap);
67
padding-bottom: var(--art-bottom-gap);
78

89
.art-control-progress {

packages/artplayer/src/style/variables.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
--art-border-radius: 3px;
99
--art-progress-height: 6px;
1010
--art-progress-color: rgba(255, 255, 255, 0.25);
11+
--art-progress-top-gap: 8px;
1112
--art-hover-color: rgba(255, 255, 255, 0.25);
1213
--art-loaded-color: rgba(255, 255, 255, 0.25);
1314
--art-state-size: 80px;

packages/artplayer/types/cssVar.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export interface CssVar {
88
'--art-border-radius': string
99
'--art-progress-height': string
1010
'--art-progress-color': string
11+
'--art-progress-top-gap': string
1112
'--art-hover-color': string
1213
'--art-loaded-color': string
1314
'--art-state-size': string

0 commit comments

Comments
 (0)