So If the player needs to jump now, how do you switch off the snapping?
You can read the solution here:
https://pigdev.itch.io/experiments/devlog/164517/jump-with-snap
You can read the solution here:
https://pigdev.itch.io/experiments/devlog/164517/jump-with-snap