Fix math error when animating items moved while dragging an icon or widget.