disable horizontal swipe navigation in cbx infinite/long strip scroll modes (#2977) (#3026)

This commit is contained in:
ACX
2026-02-26 09:12:22 -07:00
committed by GitHub
parent bb6b24eb89
commit 652e543f2b
@@ -997,6 +997,8 @@ export class CbxReaderComponent implements OnInit, OnDestroy {
}
private handleSwipeGesture() {
if (this.scrollMode === CbxScrollMode.INFINITE || this.scrollMode === CbxScrollMode.LONG_STRIP) return;
const delta = this.touchEndX - this.touchStartX;
if (Math.abs(delta) >= 50) {
// In RTL mode, swipe directions are reversed