[wp-trac] [WordPress Trac] #24882: Twenty Fourteen: Left menu / bar column -- have it be sticky-ish.
WordPress Trac
noreply at wordpress.org
Mon Jul 29 23:06:42 UTC 2013
#24882: Twenty Fourteen: Left menu / bar column -- have it be sticky-ish.
-----------------------------+------------------
Reporter: georgestephanis | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.8
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: needs-patch |
-----------------------------+------------------
Comment (by georgestephanis):
24882.diff accomplishes this, but has an event that fires on
`$(window).scroll()`
Running on scroll can be a bit of a performance hit, so I'd prefer to see
it short-circuit and return early most times, which means instead of
manually setting the `top` via .css() it will need to toggle on and off
`fixed` positioning when it's at the edges, and switch to `relative`
positioning when it's in the middle.
If there's concern about the JS still being too weighty, we could run a
test to determine if the browser is lagtastic, and not do it for those
browsers. Or include a toggle in the admin to let the user determine
whether they feel this to be a worthwhile offset.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24882#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list