Fixing pan gesture issues on the right side