When you have finished moving the view, both the frame
and center
properties have already been updated. So you don't need to do any calculation, you just read the value.
What you code does is to print the new value of center, then calculate the center from the frame. They are, and should be, the same thing.