skrollr
skrollr copied to clipboard
Remove iOS Workaround
Due to iOS (for several versions now) actually supporting scroll events as expected, the workaround seems to be, ironically, causing other issues when it isn't necessary.
I've personally been able to get things working 100% when I go in and disable the hack myself, but is this something that can be turned off by default in a future release?
Would the following work for you?
<script>
var s = skrollr.init({
mobileCheck: function() {
return false;
}
});
</script>
Definitely works, I'm just hoping newcomers aren't turned off by comparatively wonky iOS support—the default legacy workaround included by mobileCheck -> true
is unnecessary and makes things worse than the default behavior. And yes, I realize this is just an opinion!
I'd be happy to contribute if it can be decided how to proceed (ie, maybe mobileCheck
only checks for older versions of iOS where the hack was required).