[wp-trac] [WordPress Trac] #37313: Right widget sidebar in Edit Post flickers between two positions on scroll

WordPress Trac noreply at wordpress.org
Mon Jul 11 05:27:23 UTC 2016


#37313: Right widget sidebar in Edit Post flickers between two positions on scroll
--------------------------+------------------------------
 Reporter:  ericlewis     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by adamsilverstein):

 In [attachment:37313.diff] :
 * Add a `debouncedScrollHandler` in `editor-expand.js`
 * Use Underscore `_.debounce` in favor of `setTimeout` and `afterScroll`
 events

 @ericlewis can you test this to see if it resolves the issue for you?

 The flicker is caused by a secondary call to `adjust` in `afterScroll.` -
 the right bar gets pinned, then unpinned or the other way around,
 repeatedly.

 My only concern here is that `afterScroll` was added to handle some edge
 case, maybe @azaozz
 or @iseulde can tell us?

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


More information about the wp-trac mailing list