-
-
Notifications
You must be signed in to change notification settings - Fork 272
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
Support for scroll methods #373
Comments
Happy to add these, if somebody can manage to squeeze enough bytes out of the bundle, I think we are currently nearly at 6kb min+giz, I don't want to exceed that. |
@juandavm, meanwhile, I recommend creating cash-extends.js file with all new methods you need. Here is a scrollTop implementation: $.fn.scrollTop = function (val) {
var el = this.get(0);
if (val === undefined) {
return el ? el.scrollTop : null;
}
if (el) {
el.scrollTop = val;
}
return this;
}; |
@vovayatsyuk Actually that might be buggy because |
Ah, yes.. Fixed now. I hope :) Thank you. p.s. Fixed one more time.🤫 |
Cash has removed the shortcuts like ".scroll" ".click" (basically it is
|
Replaced $.fn.scrollTop = function (val) {
var el = this.get(0);
if (val === undefined) {
return el ? el.pageYOffset : null;
}
if (el) {
el.pageYOffset = val;
}
return this;
} |
But it's not working! |
Can we have partial build option so that there will be "polyfill" for |
Please, support the jQuery scrollTop method
https://api.jquery.com/scrolltop/
It's a widely used method of jQuery
The text was updated successfully, but these errors were encountered: