Click selection handling x coordinate fix