Commit 53723d82 authored by liujiangnan's avatar liujiangnan

feat

parent 6c91de64
...@@ -98,7 +98,7 @@ body { ...@@ -98,7 +98,7 @@ body {
.highlight-rect { .highlight-rect {
position: absolute; position: absolute;
border: 2px dashed #007bff; border-bottom: 3px solid #3e98e7;
background-color: transparent; background-color: transparent;
pointer-events: none; pointer-events: none;
z-index: 15; z-index: 15;
...@@ -107,13 +107,13 @@ body { ...@@ -107,13 +107,13 @@ body {
.word-highlight { .word-highlight {
position: absolute; position: absolute;
background-color: rgba(255, 235, 59, 0.2); background-color: rgba(225,96,239, 0.3);
border: 1px solid #f57f17; /* border: 1px solid #f57f17; */
border-radius: 3px; border-radius: 5px;
pointer-events: none; pointer-events: none;
z-index: 1; z-index: 1;
transition: all 0.2s ease; transition: all 0.2s ease;
box-shadow: 0 0 5px rgba(255, 235, 59, 0.5); box-shadow: 0 0 5px rgba(225,96,239, 0.5);
} }
.controls { .controls {
......
...@@ -405,7 +405,11 @@ function initializeApp(data) { ...@@ -405,7 +405,11 @@ function initializeApp(data) {
const newRects = []; const newRects = [];
const newWords = []; const newWords = [];
// 检查是否在当前页的时间范围内 // 检查是否在当前页的时间范围内;若不在,则保留当前高亮,等待实际翻页时再清除
if (currentTime < this.currentPageStartTime || currentTime > this.currentPageEndTime) {
return;
}
if (currentTime >= this.currentPageStartTime && currentTime <= this.currentPageEndTime) { if (currentTime >= this.currentPageStartTime && currentTime <= this.currentPageEndTime) {
// 使用计算属性获取所有矩形框和单词数据 // 使用计算属性获取所有矩形框和单词数据
const allRects = this.currentPageRects; const allRects = this.currentPageRects;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment