while there’s half a dozen ways to implement this, the gist is to subtract half the widget size from the viewport size and use it as a clamp:
vid: https://i.gyazo.com/7e60baa21a0fbe5e5796d81524b27671.mp4
while there’s half a dozen ways to implement this, the gist is to subtract half the widget size from the viewport size and use it as a clamp:
vid: https://i.gyazo.com/7e60baa21a0fbe5e5796d81524b27671.mp4