Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LaTeX-Workshop
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
James-Yu
LaTeX-Workshop
Commits
fb0e2b0c
Commit
fb0e2b0c
authored
3 months ago
by
James Yu
Browse files
Options
Downloads
Patches
Plain Diff
Fix #4459 Additional menu buttons in PDF viewer drop down menu no longer hide menu on click
parent
bd01da6e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
viewer/components/gui.ts
+8
-3
8 additions, 3 deletions
viewer/components/gui.ts
with
8 additions
and
3 deletions
viewer/components/gui.ts
+
8
−
3
View file @
fb0e2b0c
...
...
@@ -77,7 +77,10 @@ export async function patchViewerUI() {
for
(
const
node
of
template
.
content
.
childNodes
)
{
anchor
.
parentNode
?.
insertBefore
(
node
,
anchor
)
}
const
trimButton
=
document
.
getElementById
(
'
TrimButton
'
)
!
as
HTMLButtonElement
trimButton
.
addEventListener
(
'
click
'
,
(
e
)
=>
{
e
.
stopPropagation
()
})
registerSynctexCheckBox
()
registerAutoReloadCheckBox
()
...
...
@@ -104,8 +107,9 @@ export async function patchViewerUI() {
function
registerSynctexCheckBox
()
{
const
synctexOn
=
document
.
getElementById
(
'
synctexOn
'
)
!
as
HTMLInputElement
const
synctexOnButton
=
document
.
getElementById
(
'
synctexOnButton
'
)
!
as
HTMLInputElement
synctexOnButton
.
addEventListener
(
'
click
'
,
()
=>
{
synctexOnButton
.
addEventListener
(
'
click
'
,
(
e
)
=>
{
synctexOn
.
checked
=
toggleSyncTeX
()
e
.
stopPropagation
()
// PDFViewerApplication.secondaryToolbar.close()
})
}
...
...
@@ -113,8 +117,9 @@ function registerSynctexCheckBox() {
function
registerAutoReloadCheckBox
()
{
const
autoRefreshOn
=
document
.
getElementById
(
'
autoRefreshOn
'
)
!
as
HTMLInputElement
const
autoRefreshOnButton
=
document
.
getElementById
(
'
autoRefreshOnButton
'
)
!
as
HTMLButtonElement
autoRefreshOnButton
.
addEventListener
(
'
click
'
,
()
=>
{
autoRefreshOnButton
.
addEventListener
(
'
click
'
,
(
e
)
=>
{
autoRefreshOn
.
checked
=
toggleAutoRefresh
()
e
.
stopPropagation
()
// PDFViewerApplication.secondaryToolbar.close()
})
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment