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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 19 Mar 2013 16:33:07 -0700
Message-ID: <CAAWBYDDt_se9sMoPpm=viTHYh=SSpSC_vUNHL2OB1tXvOBcAcQ@mail.gmail.com>
To: Simon Pieters <simonp@opera.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>
On Tue, Mar 19, 2013 at 2:30 PM, Simon Pieters <simonp@opera.com> wrote:
> Is there no desire to control how long it should take to scroll? Is there no
> desire to control the timing function (ease/linear/etc)?

We believe that the time to scroll should be based on the distance,
which means you can't put it in the author's hands at all.  Similarly,
though a timing function *might* be justifiable, we think it's best
for the user to use the platform's native conventions for smooth
scrolling, as changes in how this works from app to app would be
jarring.  The benefit to the app from being able to tweak the timing
function seem minimal compared to the usability cost.

If, in the future, we decide it would be useful, we can just
reinterpret the argument as a timing function, such that "smooth"
means "use the UA's native scrolling behavior".

Received on Tuesday, 19 March 2013 23:33:59 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:09 UTC