Two ways scroll box?

You’d need to clamp the value before setting the canvas position: (movable canvas size - viewport size)/2:

3 Likes