diff --git a/dashboard-ui/scripts/site.js b/dashboard-ui/scripts/site.js index 73a7e4b659..8a5be3b93d 100644 --- a/dashboard-ui/scripts/site.js +++ b/dashboard-ui/scripts/site.js @@ -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) {