Skip to content

Commit

Permalink
Change the PDF synctex indicator appearance
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Yu committed Dec 18, 2023
1 parent 3563af6 commit 1c26598
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions viewer/latexworkshop.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ html[dir='rtl'] .findbar {
#synctex-indicator {
position: absolute;
z-index: 100000;
background-color: red;
border: 0.2em solid red;
border-radius: 50%;
opacity: 0;
pointer-events: none;
Expand All @@ -57,15 +57,15 @@ html[dir='rtl'] .findbar {
#synctex-indicator.show {
transition: none;
opacity: 0.8;
height: 8px;
width: 8px;
height: 0.5em;
width: 0.5em;
}

#synctex-indicator.hide {
transition: opacity 0.6s, height 0.6s, width 0.6s;
transition: opacity 0.5s, height 0.5s, width 0.5s;
opacity: 0;
height: 128px;
width: 128px;
height: 5em;
width: 5em;
}

#historyBack::before {
Expand Down
8 changes: 4 additions & 4 deletions viewer/latexworkshop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,10 @@ class LateXWorkshopPdfViewer implements ILatexWorkshopPdfViewer {
indicator.style.left = `${scrollX}px`
indicator.style.top = `${scrollY}px`
setTimeout(() => indicator.className = 'hide', 10)
setTimeout(() => {
indicator.style.left = ''
indicator.style.top = ''
}, 1000)
// setTimeout(() => {
// indicator.style.left = ''
// indicator.style.top = ''
// }, 1000)
}

private reload() {
Expand Down

0 comments on commit 1c26598

Please sign in to comment.