[wp-trac] [WordPress Trac] #41879: Code Editors: Weird scrolling/click behavior in Additional CSS

WordPress Trac noreply at wordpress.org
Sun Sep 17 01:40:51 UTC 2017


#41879: Code Editors: Weird scrolling/click behavior in Additional CSS
--------------------------+-----------------------
 Reporter:  melchoyce     |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  4.9
Component:  Customize     |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  ui
--------------------------+-----------------------
Changes (by westonruter):

 * keywords:  close =>
 * status:  closed => reopened
 * resolution:  duplicate =>
 * milestone:   => 4.9


Comment:

 @melchoyce oh yeah, I can see that the scrolling-on-focus is due to this
 bit of code: https://github.com/WordPress/wordpress-
 develop/blob/ab24be4c873e0a0fa8021310cbd4d20f0a2ba15c/src/wp-admin/js
 /code-editor.js#L183-L189

 It seems the problem is that it is trying to scroll the _entire_ editor
 into view, rather than just the line that is being focused.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41879#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list