Skip to content

Commit

Permalink
scroll only when render willRender
Browse files Browse the repository at this point in the history
maybe solves hotwired#387
  • Loading branch information
srt32 committed Apr 13, 2022
1 parent da35d5b commit 4681226
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/drive/visit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,9 @@ export class Visit implements FetchRequestDelegate {
})
await callback()
delete this.frame
this.performScroll()
if (this.willRender) {
this.performScroll()
}
}

cancelRender() {
Expand Down

0 comments on commit 4681226

Please sign in to comment.