W3C home > Mailing lists > Public > www-style@w3.org > March 2013

Re: [cssom-view] Add a "smooth" parameter to scrollTo and scrollBy functions

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Wed, 20 Mar 2013 03:03:49 +0100
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: www-style list <www-style@w3.org>, Nat Duca <nduca@google.com>, James Simonsen <simonjam@chromium.org>, Tony Gentilcore <tonyg@google.com>, Tom Wiltzius <wiltzius@google.com>
Message-ID: <vs4ik89a4sphcl7h4n41soa5916j5m39h4@hive.bjoern.hoehrmann.de>
* Tab Atkins Jr. wrote:
>Apparently, there has been a significant rise in the number of sites
>desiring "smooth" scrolling when adjusting the scroll position of a
>page.  Right now, they're limited to some fairly hacky, bad solutions,
>akin to standard Javascript transitions - run a requestAnimationFrame
>and update scrollTop in increments.

Could you rephrase the problem statement in terms of what users want?

>Thus, I propose that we amend the existing scrollTo and scrollBy
>functions in CSSOM View to take a third parameter: an optional
>"smooth" string.  If omitted, the scroll is instant.

I do not see how that would help authors in making web sites that be-
have as users would want them to.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Wednesday, 20 March 2013 02:04:14 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:07 GMT