https://github.com/spring-projects/spring-data-jpa/blob/8cae8cdf24503d9a5e70b7dd663a4b36cb8f7f4e/spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query/ScrollDelegate.java#L87 We must use `window.positionAt(1)` instead of `window.positionAt(0)` if we want position at the begin of window, we should call `getResultWindow()` first. https://github.com/spring-projects/spring-data-jpa/blob/8cae8cdf24503d9a5e70b7dd663a4b36cb8f7f4e/spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/query/ScrollDelegate.java#L90 The direction always be `FORWARD`, it should be `BACKWARD` if the original direction is `BACKWARD`.