TouchScroll icon indicating copy to clipboard operation
TouchScroll copied to clipboard

Inputs inside an iframe where TouchScroll is used freeze input elements

Open robertpate opened this issue 14 years ago • 1 comments

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.

robertpate avatar Mar 22 '12 15:03 robertpate

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

mariob316 avatar Apr 27 '12 18:04 mariob316