Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hotwired/turbo
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 33f562b5695046a57b67a35ecb3ba74b031248cd
Choose a base ref
..
head repository: hotwired/turbo
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8af1d0baedaf23df384d8f960e4d624eefd8b459
Choose a head ref
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/core/drive/visit.ts
8 changes: 4 additions & 4 deletions src/core/drive/visit.ts
Original file line number Diff line number Diff line change
@@ -218,7 +218,7 @@ export class Visit implements FetchRequestDelegate {
if (this.view.renderPromise) await this.view.renderPromise
if (isSuccessful(statusCode) && responseHTML != null) {
await this.view.renderPage(PageSnapshot.fromHTMLString(responseHTML), false, this.willRender)
await this.performScroll()
this.performScroll()
this.adapter.visitRendered(this)
this.complete()
} else {
@@ -261,7 +261,7 @@ export class Visit implements FetchRequestDelegate {
} else {
if (this.view.renderPromise) await this.view.renderPromise
await this.view.renderPage(snapshot, isPreview, this.willRender)
await this.performScroll()
this.performScroll()
this.adapter.visitRendered(this)
if (!isPreview) {
this.complete()
@@ -285,7 +285,7 @@ export class Visit implements FetchRequestDelegate {
if (this.isSamePage) {
this.render(async () => {
this.cacheSnapshot()
await this.performScroll()
this.performScroll()
this.adapter.visitRendered(this)
})
}
@@ -332,7 +332,7 @@ export class Visit implements FetchRequestDelegate {

// Scrolling

async performScroll() {
performScroll() {
if (!this.scrolled) {
if (this.action == "restore") {
this.scrollToRestoredPosition() || this.scrollToAnchor() || this.view.scrollToTop()