Take the resolution constraint into account.

But only at the end of the pinch zoom action.