Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
蒋秀川
/
miniProject
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3ecf4e47
authored
Sep 26, 2023
by
Tianqing Liu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 鼠标滚轮控制电子放大
1 parent
3a9f9ae1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletions
h5/src/components/vionPlayer/index.vue
h5/src/components/vionPlayer/index.vue
View file @
3ecf4e4
<
template
>
<
template
>
<div
ref=
"container"
:data-player-type=
"this.playerType"
:class=
"containerClassName"
></div>
<div
ref=
"container"
:data-player-type=
"this.playerType"
:class=
"containerClassName"
@
wheel=
"handleWheel"
>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -173,6 +178,13 @@ export default {
...
@@ -173,6 +178,13 @@ export default {
else
targetPlayer
.
zoom
.
narrowPrecision
();
else
targetPlayer
.
zoom
.
narrowPrecision
();
}
}
},
},
handleWheel
(
event
)
{
console
.
log
(
'handleWheel'
,
event
);
// TODO: 增加防抖动
event
.
stopPropagation
();
const
direction
=
event
.
deltaY
<
0
;
this
.
zoom
(
direction
);
},
// 暴露方法
// 暴露方法
play
(
url
,
isPlayback
=
false
)
{
play
(
url
,
isPlayback
=
false
)
{
...
@@ -277,6 +289,10 @@ export default {
...
@@ -277,6 +289,10 @@ export default {
::v-deep(.jessibuca-control-progress-simple)
{
::v-deep(.jessibuca-control-progress-simple)
{
display
:
none
;
display
:
none
;
}
}
//
电子放大
::v-deep
(
.jessibuca-zoom-controls
)
{
display
:
none
!important
;
}
//
云台控制
//
云台控制
&[
data-player-type
=
"playback"
]
{
&[
data-player-type
=
"playback"
]
{
::v-deep(.jessibuca-ptz)
{
::v-deep(.jessibuca-ptz)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment