[wp-trac] [WordPress Trac] #28328: Focus on editing, while editing

WordPress Trac noreply at wordpress.org
Thu Aug 14 15:46:31 UTC 2014


#28328: Focus on editing, while editing
-------------------------+-------------------------------------------------
 Reporter:  markjaquith  |       Owner:
     Type:  task         |      Status:  new
  (blessed)              |   Milestone:  4.0
 Priority:  high         |     Version:
Component:  Editor       |  Resolution:
 Severity:  critical     |     Focuses:  ui, accessibility, javascript,
 Keywords:  has-patch    |  administration
  needs-testing          |
-------------------------+-------------------------------------------------

Comment (by stephdau):

 Nailed it! In a non-hackish way, at that. :)

 I've added a condition to the scroll-up case to make sure that the current
 scroll position is inferior to half the height of the sidebar before
 positioning it back to the top of the viewport. That makes it only do that
 once the user is half-way up/down the window, and gives it what I find to
 be a smoother, more natural behavior.

 See attachment:28328.27.patch
 {{{
 } else if ( scrolledSide && windowPos < lastScrollPosition && windowPos <
 $sideSortables.outerHeight() / 2 ) {
 }}}

 Video: https://cloudup.com/ccJc6w0qvm0

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


More information about the wp-trac mailing list