Added updating of resting position when dragging