mirror of
https://github.com/jimeh/jimeh.me-v3.0.git
synced 2026-02-19 05:46:40 +00:00
webkit-scrollbar for blog only, and removed it for
MobileSafari as you can't scroll the page properly with it enabled.
This commit is contained in:
5
source/site/javascripts/webkit-scrollbar.js
Normal file
5
source/site/javascripts/webkit-scrollbar.js
Normal file
@@ -0,0 +1,5 @@
|
||||
$(document).ready(function(){
|
||||
if (navigator.userAgent.match(/Mobile.*Safari|Safari.*Mobile/i) !== null) {
|
||||
$("body").css("position", "static").css("overflow-y", "auto").css("overflow-x", "auto");
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user