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

Re: CSS properties for snapping during scrolling

From: Morten Stenshorne <mstensho@opera.com>
Date: Thu, 15 Aug 2013 11:39:30 +0200
To: robert@ocallahan.org
Cc: www-style <www-style@w3.org>
Message-ID: <87ob8z9tt9.fsf@aeneas.oslo.osa>
"Robert O'Callahan" <robert@ocallahan.org> writes:

> Microsoft introduced a large number of CSS properties controlling scrolling and
> zooming in Windows 8:
> http://msdn.microsoft.com/en-us/library/ie/hh920761%28v=vs.85%29.aspx
> As far as I know, none of them other than touch-action have been proposed for
> standardization so far.
>
> One of the features that we have use-cases for at Mozilla is the ability to
> snap scrolling to land at specific offsets. One such use-case is touch-based
> horizontal panning between pages of the home-screen in FirefoxOS. At the end of
> the panning gesture the screen should show a single page, not parts of two
> pages. An underlying physics model determines which page is selected when the
> gesture ends, and the selected page snaps into place using animation.

For such a use case, have you considered paged overflow [1][2]?

You can try this one out in a Presto-based Opera:
http://people.opera.com/mstensho/t/paged2.html (you can pan if you hold
down ctrl+alt while dragging)

[1] http://dev.w3.org/csswg/css-overflow-3/#overflow-properties
[2] http://dev.w3.org/csswg/css-gcpm/#paged-presentations

> Similar use-cases arise from many situations involving scrolling
> through a list of items.

That cannot be solved with paged overflow, obviously.

-- 
---- Morten Stenshorne, developer, Opera Software ASA ----
------------------ http://www.opera.com/ -----------------
Received on Thursday, 15 August 2013 09:39:55 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:31 UTC