W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2016

Re: [csswg-drafts] [css-scroll-snap] Choosing a snap position when children have mixed scroll-snap-align values

From: Dean Jackson via GitHub <sysbot+gh@w3.org>
Date: Wed, 30 Nov 2016 23:21:46 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-264028631-1480548103-sysbot+gh@w3.org>
I think @whsieh's question was related to whether an alignment axis 
contributes multiple points. In his diagram, imagine you start 
scrolling at 45 degrees South East. You could technically snap to the 
point in the bottom left, or along the lines on the right.

So his idea is to treat all snap positions as line segments (where a 
point is just a zero length segment). You then find the closest point 
on any of the line segments to use as the snap destination.

i.e. each element contributes a scroll snap line segment, not a scroll
 snap position.

GitHub Notification of comment by grorg
Please view or discuss this issue at 
using your GitHub account
Received on Wednesday, 30 November 2016 23:21:52 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:05 UTC