noeldelgado / gemini-scrollbar

:first_quarter_moon: Custom overlay-scrollbars with native scrolling mechanism for web applications

Home Page:https://noeldelgado.github.io/gemini-scrollbar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove SCROLLBAR_WIDTH fn check IIFE

noeldelgado opened this issue · comments

If for some reason, the script was loaded on the head, the scrollbarWidth fn check will thrown an error due to the immediately-invoked function expression (IIFE) making the lib unusable.

Removing the IIFE and checking the scrollbarWidth until instantiation will remove that error.