From dae8f1cdefc6a963463139b32c4cf551c32896c5 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Mon, 4 Sep 2017 10:22:38 +0200 Subject: [PATCH] MOBILE-2213 ios: Use data-tap-disabled in iOS audios to fix slider --- www/core/directives/formattext.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/www/core/directives/formattext.js b/www/core/directives/formattext.js index 9e1556e1f97..5de90e73c33 100644 --- a/www/core/directives/formattext.js +++ b/www/core/directives/formattext.js @@ -276,6 +276,10 @@ angular.module('mm.core') angular.forEach(dom.find('audio'), function(el) { treatMedia(el, component, componentId, siteId); + if (ionic.Platform.isIOS()) { + // Set data-tap-disabled="true" to make slider work in iOS. + el.setAttribute('data-tap-disabled', true); + } }); angular.forEach(dom.find('video'), function(el) { treatVideoFilters(el);