fix(h5): prevent native scrolling from stealing diagonal image swipes

This commit is contained in:
xsl
2026-10-13 00:42:01 +08:00
parent 4c478b16e3
commit 98935dd168
10 changed files with 197 additions and 171 deletions
+1
View File
@@ -1522,6 +1522,7 @@
}
var swipe = SwipeTrack.create(viewport, track, { count: panels.length, gestureTarget: card,
gestureSelector: '.viz-frame', startThreshold: 12, directionRatio: 2 / 3, maxOverscroll: 16,
preventNativeHorizontalPan: true,
onStart: function () { viewport.style.height = viewport.getBoundingClientRect().height + 'px'; },
onCancel: height, onSelect: function (i) { setDetailTab(card, String(i)); } });
detailSwipes.set(card, { swipe: swipe, height: height });