[wp-trac] [WordPress Trac] #28328: Focus on editing, while editing
WordPress Trac
noreply at wordpress.org
Thu Aug 14 15:26:17 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):
Proving my point more so than fixing the issue, calculating scrolling
based on 2 pixels move rather than 1 makes the issue less prominent (but
still one when a user scrolls passed the end of a document, "thanks" to
scrolling elastic/momentum effect.
{{{
if ( fixedSide && windowPos > lastScrollPosition + 1 ) {
// Scrolling down
sideScrollTrigger = ( $sideSortables.height() - ( windowHeight -
56 ) );
if ( ! scrolledSide && sideScrollTrigger > 1 && windowPos >
sideScrollTrigger && windowPos > $wrap.offset().top ) {
scrolledSide = true;
$postboxContainer.css( 'top', -( sideScrollTrigger - 36 )
);
}
console.log('down', fixedSide, scrolledSide, windowPos,
lastScrollPosition );
} else if ( scrolledSide && windowPos < lastScrollPosition - 1 ) {
scrolledSide = false;
$postboxContainer.css( 'top', '' );
console.log('up', fixedSide, scrolledSide, windowPos,
lastScrollPosition );
}
}}}
Leads to: https://cloudup.com/cauajcaOEqi
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28328#comment:70>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list