noeldelgado / gemini-scrollbar

:first_quarter_moon: Custom overlay-scrollbars with native scrolling mechanism for web applications
https://noeldelgado.github.io/gemini-scrollbar/
MIT License
429 stars 63 forks source link

[Question] ReferenceError: require is not defined #45

Closed Kristinita closed 7 years ago

Kristinita commented 7 years ago

1. Summary

I want to replace default browser body scrollbar to custom scrollbar. I can't do it, if I use Gemini-Scrollbar.

2. Settings

My GeminiTest.html file: https://codepen.io/Kristinita/pen/aWWqQE.

I create it as in official repository description.

3. Steps to reproduce

I reproduce the problem in a Chrome and Opera.

I open GeminiTest.html in browser.

4. Expected behavior

Custom body scrollbar.

5. Actual behavior

I get in Firefox console:

ReferenceError: require is not defined

Actual

I don't get custom scrollbar.

6. Environment

Operating system and version: Windows 10 Enterprise LTSB 64-bit EN Firefox: 53.0 (64-bit) Gemini-Scrollbar: The latest stable version of Gemini-Scrollbar

Thanks.

Kristinita commented 7 years ago

I'm sorry, I didn't notice folder examples in this repository. It would be nice, if you add link to it in repository description and gemini-scrollbar site, because another users can do not understand, where are the examples.

Now I solve the problem for me. Thanks.