Trying to solve scroll with EDGE/Safari

This commit is contained in:
thednp 2018-11-05 13:27:05 +02:00
parent ccd505f6d8
commit f296ffcd56
3 changed files with 4 additions and 3 deletions

File diff suppressed because one or more lines are too long

2
dist/kute.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -210,8 +210,9 @@
// true scroll container
html = document[getElementsByTagName]('HTML')[0],
scrollContainer = navigator && /(EDGE|Mac)/i.test(navigator.userAgent) ? body : html,
// scrollContainer = navigator && /webkit/i.test(navigator.userAgent) || document.compatMode == 'BackCompat' ? body : html,
scrollContainer = document.compatMode == 'BackCompat' ? body : html, // webkit browsers are now srolling the HTML
// scrollContainer = document.compatMode == 'BackCompat' ? body : html, // webkit browsers are now srolling the HTML
// browser detection
isIE = navigator && (new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})").exec(navigator.userAgent) !== null) ? parseFloat( RegExp.$1 ) : false,