When using jQuery in a project the following line gives the error in the title: `var scrollTop = e.detail.scrollTop;` It has to be replaced with this line to work: `var scrollTop = e.originalEvent.detail.scrollTop;` An if statement has to be used to detect if jQuery is used but I don't know how to do that. **Update** This fix seems to work in iOS but not in Android. This can be seen in both chrome developer tools device mode and the actual devices.
When using jQuery in a project the following line gives the error in the title:
var scrollTop = e.detail.scrollTop;It has to be replaced with this line to work:
var scrollTop = e.originalEvent.detail.scrollTop;An if statement has to be used to detect if jQuery is used but I don't know how to do that.
Update
This fix seems to work in iOS but not in Android. This can be seen in both chrome developer tools device mode and the actual devices.