fix bug in drag implementation on mobile devices