Found out that waiting 1 frame does not prevent swipes from using the outdated position, to solve that you have wait an another frame: so use wait(2); instead of wait(1);.

Last edited by Reconnoiter; 09/26/16 10:08.