[wp-trac] [WordPress Trac] #40862: Partially visible controls within a pane do not scroll into view

WordPress Trac noreply at wordpress.org
Mon Jun 5 21:02:25 UTC 2017


#40862: Partially visible controls within a pane do not scroll into view
-------------------------------------------------+-------------------------
 Reporter:  desrosj                              |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  low                                  |   Milestone:  Future
Component:  Customize                            |  Release
 Severity:  normal                               |     Version:
 Keywords:  has-screenshots good-first-bug has-  |  Resolution:
  patch                                          |     Focuses:
-------------------------------------------------+-------------------------

Comment (by jpurdy647):

 The problem with `scrollIntoView()` is that it jumps the element to the
 top of the screen immediately, interrupting the user experience.

 My approach is to check whether the widget will be clipped on the bottom
 (or be too close to the bottom of the screen) and if so smoothly scroll
 down while the widget is sliding open.

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


More information about the wp-trac mailing list