The calculations should only be performed when finishing a drag movement.