Restrict function should only adjust position on the axes that are possible by the scroll view itself. So if you set the scroll view to be horizontal, then it won't move along the Y at all. Other than that, I can't tell you why yours is moving as I don't know anything about your setup.