[wp-trac] [WordPress Trac] #38850: Sticky positioning for a smoother scrolling experience
WordPress Trac
noreply at wordpress.org
Fri Nov 18 11:06:25 UTC 2016
#38850: Sticky positioning for a smoother scrolling experience
-------------------------+-------------------------
Reporter: iseulde | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.8
Component: Editor | Version:
Severity: normal | Keywords: needs-patch
Focuses: javascript |
-------------------------+-------------------------
Let's consider using sticky positioning to do the scrolling effect we
currently have on the editor page. At the moment we use JS and listen to
scroll events, which is not ideal. It may look slow and buggy under some
circumstances.
Browser support is looking good. It's already implemented in Firefox and
Safari, and by the time we ship 4.8 it will be in Chrome (est. 31 Jan).
It's under consideration for Edge and there's no support in IE. This is no
big deal though, as we can just fall back to what we currently have.
http://caniuse.com/#feat=css-sticky
Note: Firefox now also gives a warning in the console about using JS for
this:
> This site appears to use a scroll-linked positioning effect. This may
not work well with asynchronous panning; see
https://developer.mozilla.org/docs/Mozilla/Performance/ScrollLinkedEffects
for further details and to join the discussion on related tools and
features!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38850>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list