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

Scroll not working when hovering elements with position:absolute #30

Closed WiS3 closed 8 years ago

WiS3 commented 8 years ago

Hello, i have a div #contentWrapper with position:relative, the scrollbar is attached to this element and it is working fine, but inside i have some elements with position:absolute, and the scrolling doesn't work when the mouse is over those elements. The native scrolling is working, but not with gm.

How i can solve this issue? Thanks

noeldelgado commented 8 years ago

Hi @WiS3, can you please create a "bin" reproducing the problem?, you can use this one as a starting point http://requirebin.com/?gist=300eb3d11e731561815ceb088786815f, thanks.

lianyzhou commented 8 years ago

i have the same problems

noeldelgado commented 8 years ago

Hi @WiS3, @lianyzhou. I just tried that really quick and I am getting the same behaviour for both cases (not being able to scroll when hovering those elements). - http://requirebin.com/?gist=300eb3d11e731561815ceb088786815f

With that, I don't think it is a library problem, but the expected behaviour.

Tested on OS X Yosemite v10.10.3

If you are sure this is a library problem, please provide more information (or update the "bin") so I can continue debugging.

Thanks.

noeldelgado commented 8 years ago

@WiS3, @lianyzhou: Btw, if your absolute elements are for pure decoration, try adding pointer-events: none to them. Let me know if that works for you.