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

Inputs inside an iframe where TouchScroll is used freeze input elements #27

Open
robertpate opened this issue Mar 22, 2012 · 1 comment

Comments

@robertpate
Copy link

If a page using TouchScroll is loaded inside an iframe and the page has inputs, the input's key entry is unresponsive when a user moves the cursor in the input box using a touch, hold, move the cursor, and release. After that action, no keyboard entries are registered in the input even though the cursor is available and the input is considered active.

@mariob316
Copy link

In the touchscroll js, add this to the onTouchStart function in the if statment

var target = a.target;
while (target.nodeType !== 1){
target = target.parentNode;
}
if (target.tagName !== 'INPUT' && target.tagName !== 'SELECT'){
a.preventDefault();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants