Fix for #615,

Replaced event.clientX with event.pageX in the dragStart and dragMove functions