Skip to content
This repository was archived by the owner on Nov 25, 2022. It is now read-only.
This repository was archived by the owner on Nov 25, 2022. It is now read-only.

Cannot read property 'scrollTop' of undefined when using jQuery #11

Description

@bglogic

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions