From 91ad46fec241a9e55b6fb08d98e31b1db925622e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20B=C3=BCrge?= Date: Thu, 13 Jul 2017 15:29:27 +0200 Subject: [PATCH] Don't ignore FireFox on OS X. --- jquery.scrollbar.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/jquery.scrollbar.js b/jquery.scrollbar.js index 0883fd3..2798c9e 100644 --- a/jquery.scrollbar.js +++ b/jquery.scrollbar.js @@ -162,7 +162,13 @@ // do not init if in ignorable browser if ((browser.mobile && o.ignoreMobile) || (browser.overlay && o.ignoreOverlay) - || (browser.macosx && !browser.webkit) // still required to ignore nonWebKit browsers on Mac + // NOTE: Not ignoring FireFox on OS X / macOS. + // From https://github.com/gromo/jquery.scrollbar: + // "There is known issue that native browser scrollbar cannot be hidden in + // Firefox on Apple devices, so this plugin is not initialized and you will + // see native scrollbars." + // Except, this seems to be no longer the case (in FireFox 54.0). + // || (browser.macosx && !browser.webkit) // still required to ignore nonWebKit browsers on Mac ) { if ($.isFunction(o.onFallback)) { o.onFallback.apply(this, [c]);