infinite-viewer
infinite-viewer copied to clipboard
How to prevent negative scrolling
I am using Rule with Infinite-Viewer and would like to ensure that I can't move beyond the initial top/left coordinates. Currently when I do, the Rule shows negative. I wish to only allow scrolling in a positive direction for both horizontal and vertical scrolling.
Is this possible?
@jkears
use rangeX: [0, Infinity], rangeY: [0, Infinity]