1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

init fast click for safari

This commit is contained in:
Luke Pulverenti 2015-05-08 13:30:24 -04:00
parent 782e264478
commit 59ba9520de

View file

@ -1582,10 +1582,20 @@ var AppInfo = {};
}
}
function initFastClick() {
FastClick.attach(document.body);
// Have to work around this issue of fast click breaking the panel dismiss
$(document.body).on('touchstart', '.ui-panel-dismiss', function () {
$(this).trigger('click');
});
}
function onReady() {
if ($.browser.safari) {
//FastClick.attach(document.body);
if ($.browser.safari && $.browser.mobile) {
initFastClick();
}
if (AppInfo.hasLowImageBandwidth) {