-
Notifications
You must be signed in to change notification settings - Fork 33
If body has height: 100%; scroll direction will not change. #55
Comments
@louisnovick thank you very much for the note. Does this help? // just a thought?
scrollDir({ el: 'your-new-selector' }); Thanks for sharing!!! |
If I set
|
@louisnovick could you supply a codepen or jsfiddle/bin? ~Thanks |
@louisnovick thanks! Hopefully I can look over it very soon! |
This is my attempt to show steps towards allowing the use of a scrollable element instead of the entire window. I worked off of I added an option called https://codepen.io/uturnr/pen/gzMNme Normal usage without the https://codepen.io/uturnr/pen/erzwBO I tried the above because I want to use this feature on a scrollable element within a project I'm working on. However, there may be a simple fix for this specific issue: Change: Revised version of @louisnovick's codepen: https://codepen.io/uturnr/pen/erzwwz (That change could be applied to my original codepen too) |
@uturnr published in npm. If there are issues, an option can be added. |
Version 1.2.18
If the body has
height: 100%;
the scroll direction does not change. As soon as I set the body height toauto
it works as intended. This occurred because https://semantic-ui.com sets theheight
of bothhtml
andbody
to100%
by default. Is it worth amending this in case someone runs into a similar issue?The text was updated successfully, but these errors were encountered: