Add drag event, calculate drag distance correctly