I'm trying to understand if there exists a scheme $X$ and an $f \in \Gamma(X;\mathcal{O}_X)$ such that the natural map $\Gamma(X;\mathcal{O}_X)_f \to \Gamma(X_f ;\mathcal{O}_{X_f} )$ is not an equality ?
I think I need to look for something not affine, but I cannot think of the example, I will appreciate any help!