Fixed bug causing a snapping action on drag