nicklockwood / iCarousel

A simple, highly customisable, data-driven 3D carousel for iOS and Mac OS
http://www.charcoaldesign.co.uk/source/cocoa#icarousel
Other
11.99k stars 2.58k forks source link

On apps running on Mac OS with Catalyst to move between different item you can't use trackpad gesture but need to press and drag #903

Closed Lucagfc closed 2 years ago

Lucagfc commented 2 years ago

As described in the title this can be considered a bug, and in many cases you need to solve this by using two buttons to move the selected item

Lucagfc commented 2 years ago

I found that, to receive also two finger horizontal swipe on trackpad and one finger horizontal scrolling on Magic Mouse is enough to add the follow line of code when the UITapGestureRecognizer is created in the -(void)setUp: method

panGesture.allowedScrollTypesMask = UIScrollTypeMaskAll;