From e1913211930a53e77a4d18b70f673fea9799be75 Mon Sep 17 00:00:00 2001 From: Mike Hartington Date: Wed, 15 Mar 2017 14:20:03 -0400 Subject: [PATCH] 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): --- src/components/slides/swiper/swiper-events.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/slides/swiper/swiper-events.ts b/src/components/slides/swiper/swiper-events.ts index 0dc1b8e73ec..11ce84f95dd 100644 --- a/src/components/slides/swiper/swiper-events.ts +++ b/src/components/slides/swiper/swiper-events.ts @@ -66,7 +66,7 @@ export function initEvents(s: Slides, plt: Platform): Function { }, { passive: true, zone: false }, unregs); } - if ((s.simulateTouch && !plt.is('ios') && !plt.is('android')) || (s.simulateTouch && !s._supportTouch && plt.is('ios'))) { + if ((s.simulateTouch && !plt.is('ios') && !plt.is('android')) || (s.simulateTouch && !s._supportTouch && plt.is('ios')) || plt.getQueryParam('ionicPlatform')) { // mousedown plt.registerListener(touchEventsTarget, 'mousedown', (ev: SlideUIEvent) => { onTouchStart(s, plt, ev);