When not shaking you can simulate bounded with something like this:
set scrollx to clamp(scrollx, screenwidth/2, layoutwidth-screenwidth/2)
set scrolly to clamp(scrolly, screenheight/2, layoutheight-screenheight/2)
I didn't verify the expression names but the idea should be sound.