Minecraft wiki entry for Sprinting, associated text: In the Bedrock version, there is a short window of time in which the player can move away from the solid block in order to continue sprinting. In the Java version, sprinting ends immediately upon colliding.