Takes an x value and checks it's within the range of the Camera bounds, adjusting if required. Do not call this method if you are not using camera bounds.
name | type | description |
---|---|---|
x | number |
The value to horizontally scroll clamp. |
The adjusted value to use as scrollX.