Skip to content

Commit 201054e

Browse files
committed
Fixed instant loading causing jump for code annotations
1 parent 5c57458 commit 201054e

File tree

6 files changed

+25
-51
lines changed

6 files changed

+25
-51
lines changed

material/assets/javascripts/bundle.dd423ef8.min.js renamed to material/assets/javascripts/bundle.fac441b0.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/assets/javascripts/bundle.dd423ef8.min.js.map renamed to material/assets/javascripts/bundle.fac441b0.min.js.map

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@
240240
</script>
241241
{% endblock %}
242242
{% block scripts %}
243-
<script src="{{ 'assets/javascripts/bundle.dd423ef8.min.js' | url }}"></script>
243+
<script src="{{ 'assets/javascripts/bundle.fac441b0.min.js' | url }}"></script>
244244
{% for path in config.extra_javascript %}
245245
<script src="{{ path | url }}"></script>
246246
{% endfor %}

package-lock.json

+11-40
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@
6161
"@types/fuzzaldrin-plus": "^0.6.2",
6262
"@types/html-minifier": "^4.0.2",
6363
"@types/lunr": "^2.3.4",
64-
"@types/node": "^18.16.3",
64+
"@types/node": "^18.16.1",
6565
"@types/resize-observer-browser": "^0.1.7",
6666
"@types/sass": "^1.45.0",
67-
"@typescript-eslint/eslint-plugin": "^5.59.2",
68-
"@typescript-eslint/parser": "^5.59.2",
67+
"@typescript-eslint/eslint-plugin": "^5.59.1",
68+
"@typescript-eslint/parser": "^5.59.1",
6969
"autoprefixer": "^10.4.14",
7070
"chokidar": "^3.5.3",
7171
"cssnano": "5.1.0",
@@ -91,12 +91,12 @@
9191
"preact": "^10.13.2",
9292
"rimraf": "^5.0.0",
9393
"sass": "^1.62.1",
94-
"simple-icons": "^8.12.1",
94+
"simple-icons": "^8.11.0",
9595
"stylelint": "^15.6.0",
9696
"stylelint-config-recess-order": "^4.0.0",
9797
"stylelint-config-recommended": "^12.0.0",
9898
"stylelint-config-standard-scss": "^9.0.0",
99-
"stylelint-scss": "^5.0.0",
99+
"stylelint-scss": "^4.6.0",
100100
"svgo": "3.0.0",
101101
"tiny-glob": "^0.2.9",
102102
"ts-node": "^10.9.1",

src/assets/javascripts/components/content/annotation/_/index.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,10 @@ export function mountAnnotation(
222222
takeUntil(done$),
223223
filter(ev => !(ev.metaKey || ev.ctrlKey))
224224
)
225-
.subscribe(ev => ev.preventDefault())
225+
.subscribe(ev => {
226+
ev.stopPropagation()
227+
ev.preventDefault()
228+
})
226229

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

0 commit comments

Comments
 (0)