added support for dragging on mobile