Hi fellas, got an interesting problem I'm trying to solve.
When the draggable has other elements inside it that extend outside of the draggable’s bounds, and autoscroll is enabled, it will increase the dimensions of the container larger than it should be.
I borrowed your codepen so you could see the problem as easily as possible, I hope that's okay. You can repro the issue by dragging the box to the far right. Once it hits the bounds the first time, it will artificially increase the container to accommodate the pusedo div.
Since the scrollWidth and calculations are all read only, and the problem is not really related to GSAP but with the browser calculations, I'm struggling to find a solution.
I realize the easiest method would be to make the entire shape the draggable, but for what I'm using it for, that's not a good option. It's a magnifying glass you drag around, so the handle is not in the calculations for more accurate targeting, if that makes sense.
Thanks for all your help!