Elements Panel scrolls to top of script code when selected for editing somewhere further down
Reported by
ferndrig...@gmail.com,
Apr 1 2016
|
||||||||
Issue descriptionChrome Version : 49.0.2623.110 m URLs (if applicable) : http://www.ii-nami.com/gt-hitotsuba Other browsers tested: Add OK or FAIL, along with the version, after other browsers where you have tested this issue: Safari: - Firefox: - IE: - What steps will reproduce the problem? (1) Inspect video element (top center of page) (2) Open script below the object element, which starts with "(function(){ function dispatchVideogEvent(data){ ..." (3) Select script > script has focus and has now white text on blue background (4) Scroll down a bit, such that the top of the script is not in the console viewport anymore (5) Double click on any script line of your choosing What is the expected result? Like in ANY other text editor, I expect the cursor to be at the clicked position, and the text staying the same as before the double click What happens instead? There is NO cursor (at the clicked position). Instead, the WHOLE script gets focused and "ready to edit". Therefore, I lose my current scroll position and have to start at the top of the script to scroll down to the right position again before I can make any edit. Please provide any additional information below. Attach a screenshot if possible.
,
Apr 1 2016
The main reason I would classify this as a bug, is because this behaviour differs from the behaviour when editing other tags, for example a "div" tag.
,
Apr 1 2016
,
Apr 4 2016
Andrey, please take a look.
,
May 27 2016
,
May 31 2016
Looks like this is Elements Panel related, not Console.
,
Jul 29 2016
The same behavior happens for both DIV tags with long text and script tags. As far as you provide inline script with sourceURL, you would be able to edit/debug it conveniently in the Sources panel.
,
Sep 29 2016
,
Sep 29 2016
|
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by ferndrig...@gmail.com
, Apr 1 2016