Skip to content

Commit 5a12fe5

Browse files
committed
MOBILE-1452 video: Add data-tap-disabled so controls work in Android
1 parent 4dd2215 commit 5a12fe5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

www/core/directives/formattext.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ angular.module('mm.core')
241241
});
242242
angular.forEach(dom.find('video'), function(el) {
243243
treatMedia(el, component, componentId, siteId);
244+
// Set data-tap-disabled="true" to make controls work in Android (see MOBILE-1452).
245+
el.setAttribute('data-tap-disabled', true);
244246
});
245247
angular.forEach(dom.find('iframe'), addMediaAdaptClass);
246248

0 commit comments

Comments
 (0)