I'm trying to replicate the behavior of Google ads carousels that allow both dragging and swiping with a track pad.
At first, this demo appears to work, but I quickly ran into problems. For example, if you drag the carousel a little bit to the left, and then switch to using the trackpad to swipe the rest of the way to the left, and you'll see that you can now swipe past the end of the carousel content. The bounds are no longer respected, and you'll see the pink background of the wrapper div, which should be impossible.
Grateful for any suggestions. Thanks!