TouchScroll
TouchScroll copied to clipboard
Inputs inside an iframe where TouchScroll is used freeze input elements
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.
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(); }