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:
parent
782e264478
commit
59ba9520de
1 changed files with 12 additions and 2 deletions
|
@ -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() {
|
function onReady() {
|
||||||
|
|
||||||
if ($.browser.safari) {
|
if ($.browser.safari && $.browser.mobile) {
|
||||||
//FastClick.attach(document.body);
|
initFastClick();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (AppInfo.hasLowImageBandwidth) {
|
if (AppInfo.hasLowImageBandwidth) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue