Skip to content
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

Cancelling scrolling when an INPUT element has the focus #103

Open
paulhickman opened this issue Nov 6, 2013 · 1 comment
Open

Cancelling scrolling when an INPUT element has the focus #103

paulhickman opened this issue Nov 6, 2013 · 1 comment

Comments

@paulhickman
Copy link

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;
}

@azoff
Copy link
Owner

azoff commented Feb 12, 2014

Overscroll is already doing this; are you using the most up-to-date version?

Here is what overscroll cancels on:
https://github.com/azoff/Overscroll/blob/master/src/jquery.overscroll.js#L146

Here is the implementation point (in start):
https://github.com/azoff/Overscroll/blob/master/src/jquery.overscroll.js#L451

@azoff azoff added this to the 1.7.4 milestone Feb 12, 2014
@azoff azoff added the Denied label Feb 12, 2014
@azoff azoff modified the milestones: backlog, 1.7.4 Feb 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants