Its all one texture. You just say what rectangular part the user can see.
So, yes if you want it to wrap at the pixel level you would need the texture to be bigger than its viewport.... and then move back to the original position at some point.
Develop games in your browser. Powerful, performant & highly capable.