-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breaking API change - pin/unpin -> up/down #102
Comments
The reason i say this is because I've had people ask about using headroom to have elements come in from the bottom, and then pin/unpin makes no sense |
I've not yet had a chance to implement headroom.js (I'm hoping to in the next several months), but have been following your script for a while. I am one who is also interested in using headroom.js for having an element come in from the bottom (in addition to having a different element come in from the top on the same page). So I'm in favor of the naming changes as it does make it less confusing and more intuitive for use in both contexts (as I interpret that I think I like One small suggestion: I might change the order slightly, just to make both sets of options in the same order.
One other thought: Are Thanks for this great script! I'm looking forward to when I get to implement it for my site! :) Sean |
First, thanks for writing this plugin, I use it a lot on my projects! Considering the terminology, I still think that pinned/unpinned is the best approach, since that up/down is relative to the user device and/or settings. Example: if you use the Magic Mouse or the MacBook Trackpad on OS X with the option “Scroll direction: natural” (enable by default), the content follows finger movement, pretty much like on touch devices. The scroll inverses than, up is down and vice-versa. Anyway, that's my 2 cents. |
I just noticed that the options are now called pinned/unpinned instead of up/down. I'm a little late to the discussion, I guess. :P |
I feel like the pin/unpin metaphor might have been stretched too much. The change would involve the following changes to the public API, in particular the following parts of the options object would change:
I like the change to up/down as it would be consistent with the properties in the tolerance option.
Does anybody have any thoughts on this? Is it actually a problem or am i overthinking it? This change would of course come before v1.0.0 (i.e. this would be the last breaking change i'd make) if it were to happen
The text was updated successfully, but these errors were encountered: