UIDragDetector with pixel-offset positioning. The library adds a grid constraint and viewport-aware clamping on top of the native drag behavior.
Grid snapping
Grid snapping is enabled by default with a 10 pixel grid:TabPositions.
Built-in settings
The automaticSettings tab includes:
The selected grid settings persist through the JSON configuration file.
Screen bounds
Tab positions are clamped using the current viewport size. The tab header is 200 px wide, so the X offset stays between0 and viewportWidth - 200; the Y offset stays between 0 and viewportHeight - 20.
New tabs start at an X offset of 10 px and at a Y position based on the GUI inset, with a minimum starting height of 40 px. Existing tabs are re-clamped when the viewport size changes.