fixed the left to right gesture checking