W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2019

[csswg-drafts] [css-scroll-snap] Snapping to center of zoomed image in gallery (#3583)

From: Charles Belov via GitHub <sysbot+gh@w3.org>
Date: Fri, 01 Feb 2019 00:01:36 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-405494415-1548979295-sysbot+gh@w3.org>
CharlesBelov has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-scroll-snap] Snapping to center of zoomed image in gallery ==
Re: [Motivating Examples](https://www.w3.org/TR/css-scroll-snap-1/#examples) 

How does the spec or site code handle situations for the following use case in the event of zoomed images in a photo gallery?

Steps:

1. Site visitor scrolls through the gallery to a particular image

2. Browser snaps image to center point

3. Site visitor pinch-zooms to expand the image such that the image is now much larger than the viewport or provided visible area. I suspect this particular concern belongs in a different spec, but am including it to be rigorous.

Expected behavior: Zoomed image stays zoomed.

Feared behavior: Zoomed image snaps back to original size at the center point.

4. Visitor attempts to pan around the enlarged image in order to see all of the image contents. This is the primary focus of concern for this issue.

Expected behavior: Visitor can pan around the image freely with no further snapping taking place.

Feared behavior: Any time the visitor pans toward the edge of the image, the browser snaps the image back to center point and/or resets the zoom.

Feared behavior: Any time the visitor inadvertently overshoots the edge of the image, the browser snaps the image back to center point, resets the zoom, or snaps to the center point of the next or previous image.





Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3583 using your GitHub account
Received on Friday, 1 February 2019 00:01:37 UTC

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