Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add control to preserve scroll during Drive visits #1040

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

seanpdoyle
Copy link
Contributor

@seanpdoyle seanpdoyle commented Oct 17, 2023

Extracted from #1019

Add support for preserving scroll changes from page to page. Controlled by the presence of the <meta name="turbo-scroll"> element in the <head>.

To preserve:

<meta name="turbo-scroll" content="preserve">

To reset:

<meta name="turbo-scroll" content="reset">

Extracted from [hotwired#1019][]

Add support for preserving scroll changes from page to page. Controlled
by the presence of the `<meta name="turbo-scroll">` element in the
`<head>`.

To preserve:

```html
<meta name="turbo-scroll" content="preserve">
```

To reset:

```html
<meta name="turbo-scroll" content="reset">
```

[hotwired#1019]: hotwired#1019

Co-authored-by: Alberto Fernández-Capel <afcapel@gmail.com>
Co-Authored-By: Jorge Manrubia <jorge@hey.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants