Skip to content

Cancelling scrolling when an INPUT element has the focus #103

@paulhickman

Description

@paulhickman

If there are input elements that are children of the scrolling area, you should cancel the overflow scrolling, particularly for HTML range elements.

I added the following to start() to achieve this but there may be a better solution

// stop any drifts
flags.drifting = false;

// allow input focus
if (event.target.tagName=="INPUT" || event.target.tagName=="TEXTAREA") {
return;
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions