Skip to content

Commit e191321

Browse files
mhartingtonmanucorporat
authored andcommitted
fix(slides): simulate touch events for query params (#10579)
* fix(slides): simulate touch events for query params Slide fail to swipe when platform via query params. This lets touch events be simulated is ionicPlatform is set. Closes #10577 * style(remove debug log):
1 parent c236a4b commit e191321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/slides/swiper/swiper-events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export function initEvents(s: Slides, plt: Platform): Function {
6666
}, { passive: true, zone: false }, unregs);
6767
}
6868

69-
if ((s.simulateTouch && !plt.is('ios') && !plt.is('android')) || (s.simulateTouch && !s._supportTouch && plt.is('ios'))) {
69+
if ((s.simulateTouch && !plt.is('ios') && !plt.is('android')) || (s.simulateTouch && !s._supportTouch && plt.is('ios')) || plt.getQueryParam('ionicPlatform')) {
7070
// mousedown
7171
plt.registerListener(touchEventsTarget, 'mousedown', (ev: SlideUIEvent) => {
7272
onTouchStart(s, plt, ev);

0 commit comments

Comments
 (0)