Skip to content

Commit

Permalink
Fixed instant loading causing jump for code annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed May 2, 2023
1 parent 5c57458 commit 201054e
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 51 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion material/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
</script>
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.dd423ef8.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.fac441b0.min.js' | url }}"></script>
{% for path in config.extra_javascript %}
<script src="{{ path | url }}"></script>
{% endfor %}
Expand Down
51 changes: 11 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@
"@types/fuzzaldrin-plus": "^0.6.2",
"@types/html-minifier": "^4.0.2",
"@types/lunr": "^2.3.4",
"@types/node": "^18.16.3",
"@types/node": "^18.16.1",
"@types/resize-observer-browser": "^0.1.7",
"@types/sass": "^1.45.0",
"@typescript-eslint/eslint-plugin": "^5.59.2",
"@typescript-eslint/parser": "^5.59.2",
"@typescript-eslint/eslint-plugin": "^5.59.1",
"@typescript-eslint/parser": "^5.59.1",
"autoprefixer": "^10.4.14",
"chokidar": "^3.5.3",
"cssnano": "5.1.0",
Expand All @@ -91,12 +91,12 @@
"preact": "^10.13.2",
"rimraf": "^5.0.0",
"sass": "^1.62.1",
"simple-icons": "^8.12.1",
"simple-icons": "^8.11.0",
"stylelint": "^15.6.0",
"stylelint-config-recess-order": "^4.0.0",
"stylelint-config-recommended": "^12.0.0",
"stylelint-config-standard-scss": "^9.0.0",
"stylelint-scss": "^5.0.0",
"stylelint-scss": "^4.6.0",
"svgo": "3.0.0",
"tiny-glob": "^0.2.9",
"ts-node": "^10.9.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@ export function mountAnnotation(
takeUntil(done$),
filter(ev => !(ev.metaKey || ev.ctrlKey))
)
.subscribe(ev => ev.preventDefault())
.subscribe(ev => {
ev.stopPropagation()
ev.preventDefault()
})

/* Allow to open link in new tab or blur on close */
fromEvent<MouseEvent>(index, "mousedown")
Expand Down

0 comments on commit 201054e

Please sign in to comment.