I need assistance with my mobile application that requires swipe events within a scrollable container. Currently, when I use (swipeRight)=""
or (swipeLeft)=""
, the events work effectively but it disables scrolling within the container.
I attempted to utilize a gesture config for Hammerjs, but it only functions vertically as shown below:
export class MyHammerConfig extends HammerGestureConfig {
overrides = <any> {
'pinch': { enable: false },
'rotate': { enable: false }
}
}
providers: [
{
provide: HAMMER_GESTURE_CONFIG,
useClass: MyHammerConfig
}
],
Is there a solution to enabling both the (swipeRight)
and (swipeLeft)
events while maintaining scroll functionality within the container?