Skip to content

Commit

Permalink
Submit posts before scrolling, instead of after
Browse files Browse the repository at this point in the history
  • Loading branch information
Sothatsit committed Mar 28, 2023
1 parent b8e53b8 commit 02e3a67
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/screens/game/GameInterface.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,12 @@ export class GameScreen extends ActiveGameScreen {
} while (true);

postIndex = nextPostIndex;

// Preemptively submit the post we will scroll past.
const postToSubmit = postIndex - 1;
if (postToSubmit >= 0) {
this.onPostScrolledOffScreen(postToSubmit);
}
}

// Get the post to scroll it into view.
Expand Down

0 comments on commit 02e3a67

Please sign in to comment.