Switching focus breaks scroll position
Author: CinamonasCreated Jan 29, 2014Updated Sep 9, 2018
Hi,
Switching focus from one input field to another, which is outside viewable area, breaks scroll position.
This fiddle illustrates the issue: focus first field (Foo) and switch focus to last field (Qux) by pressing tab key three times. Observe scrollbar while doing it.
Same happens if you focus programatically. See another fiddle.
Is this known behaviour?
Source: cubiq/iscroll