Added back scroll locking

This commit is contained in:
squidfunk
2021-02-22 22:27:30 +01:00
parent de49689f99
commit ece3253d4f
18 changed files with 168 additions and 41 deletions

View File

@@ -90,8 +90,8 @@ as [documented here][2]._
:octicons-beaker-24: Experimental
If your documentation is available in multiple languages, a _language selector_
can be added to the header next to the search bar. Languages can be defined via
`mkdocs.yml`:
can be added to the header next to the search bar. Alternate languages can be
defined via `mkdocs.yml`:
``` yaml
extra:

View File

@@ -408,7 +408,7 @@ JavaScript][33], you can subscribe to the `keyboard$` observable and attach
your custom event listener:
``` js
app.keyboard$.subscribe(function(key) {
keyboard$.subscribe(function(key) {
if (key.mode === "global" && key.type === "x") {
/* Add custom keyboard handler here */
key.claim()

View File

@@ -68,7 +68,7 @@ which will emit the current `URL` to listen for navigation events and register
a page view event with:
``` js
app.location$.subscribe(function(url) {
location$.subscribe(function(url) {
/* Add custom page event tracking here */
})
```

View File

@@ -316,8 +316,9 @@ customize the `transform` function, you can do this by [overriding the
``` html
{% block config %}
{{ super() }}
<script>
var search = {
var __search = {
transform: function(query) {
return query
}
@@ -345,8 +346,9 @@ directory and [override the `config` block][21]:
``` html
{% block config %}
{{ super() }}
<script>
var search = {
var __search = {
worker: "<url>"
}
</script>