Bug 125150 - Focus element is calculated after 300ms
Summary: Focus element is calculated after 300ms
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-03 06:06 PST by Tingan Ho
Modified: 2019-02-06 09:18 PST (History)
0 users

See Also:


Attachments
This video describes the bug (10.04 MB, video/mp4)
2013-12-03 06:08 PST, Tingan Ho
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tingan Ho 2013-12-03 06:06:26 PST
I have tried to remove the 300ms delay on some inputs(see attached video below). I call element.focus on the respective element I want to focus. It works fine in some elements. Though I noticed if there is a native focus animation, that require the web page to scroll to vertically center an input. The web browser wait for the 300ms and than figure out which element was touched and it doesn't take into account that the web page have moved. So if the input is not under "your finger" after 300ms you focus on that input is lost.

See attached video. it explains the bug better than the text.
Comment 1 Tingan Ho 2013-12-03 06:08:00 PST
Created attachment 218290 [details]
This video describes the bug

This video describes the bug
Comment 2 Lucas Forschler 2019-02-06 09:18:31 PST
Mass move bugs into the DOM component.