Skip to content

Commit fa24824

Browse files
author
veedrin
committed
阻止视频播放器事件冒泡,会引起浏览器崩溃
1 parent 3d94781 commit fa24824

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/intro.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ <h2>最极客的云端开发体验</h2>
928928
</div>
929929
</div>
930930
<div id="video-pop" onClick="handleCloseVideo()">
931-
<div class="board">
931+
<div class="board" onClick="stopBubble(event)">
932932
<video preload controls>
933933
<source type="video/mp4" src="https://cs-res.codehub.cn/cloud-studio-plugins-intro.mp4">
934934
</source>
@@ -1188,6 +1188,9 @@ <h2>最极客的云端开发体验</h2>
11881188
$videoPop.classList.remove('on');
11891189
$video.pause();
11901190
}
1191+
function stopBubble(event) {
1192+
event.stopPropagation();
1193+
}
11911194
// 插件比赛广告图片
11921195
const $campaignImg = document.querySelector('#campaign-img');
11931196
function handleCampaign() {

0 commit comments

Comments
 (0)