changing offset based on location of double click event