-
Notifications
You must be signed in to change notification settings - Fork 234
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
Scroller fix #1269
Scroller fix #1269
Conversation
Maybe it should work on window? |
@arian sure, it could work on window if we changed on L88 to this under:
jsFiddle: http://jsfiddle.net/9rmHf/ I would still vote for the new docs example, if you think its ok (keeping window information). |
I'd prefer that indeed. |
@arian: updated |
LGTM. Ship it. |
It looks like this fix is currently not properly implemented. In the current version of Mootools More, the line reads: pos = ((this.element != this.docBody) && (this.element != window)) ? element.getOffsets() : {x: 0, y: 0}, Which throws a pos = ((this.element != this.docBody) && (this.element != window)) ? this.element.getOffsets() : {x: 0, y: 0}, |
@RemkoNolten i supose you are right. Do you have the possibility to send a pr to fix this, and eventually a spec also? Thanks |
@SergioCrisostomo To be honest: I've never create a push request and/or a spec before, so it would take me considerable time which I (unfortunately) do not have at the moment. (It's about time I learned :)) |
@RemkoNolten no problem. I will check this out later today. Do take a look here: https://github.com/mootools/mootools-more#contribute when you find time. Thank you again! |
@SergioCrisostomo Thanks for your quick response! I've some other patches/fixes (not really bugs) in my version of Mootools which I certainly intend to contribute some day. My lack of knowledge / time is currently prohibiting this, but I will look into the document you suggested soon! |
patches are really welcome :) On Wed, Nov 5, 2014 at 11:57 AM, Remko Nolten notifications@github.com
|
fixes #1012, closes #1013
Contrary to the documentation, Scroller Class crashes if
window
is passed to the Class.Docs were giving example with
window
as element. That breaks the codeas described in #1012
This pull request fixes that (source code fix was discussed in #1012, and is included in this p.r.)
This changes also:
it working "out of the box": http://jsfiddle.net/v4yJD/
code source uses
this.element = document.id(element);