issue #5176, refactor UIFocusManager and UIScrollView