I’m building a simple prototype where a carousel of images can be swiped left/right to go to the next/previous image. I’m using the On Drag interaction but the problem is that it only accounts for one direction.
Imagine you have a strip of 3 images (A, B and C) where each image has the same width as the screen. If B is in the center, I can only use the On Drag interaction to go to either to A or C. Because there’s only one direction I can use.
This could be resolve by adding a specific direction for the On Drag interaction. On Left drag go to A, on Right Drag go to C.
This is a very common pattern. Does anyone figure out if there’s a work-around for this?
Thanks!