[Webkit-unassigned] [Bug 227062] New: [css-scroll-snap] Simplify snap point selection helpers

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 16 02:52:56 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=227062

            Bug ID: 227062
           Summary: [css-scroll-snap] Simplify snap point selection
                    helpers
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Scrolling
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mrobinson at webkit.org
                CC: simon.fraser at apple.com

We can combine the two snap point selection helpers indicesOfNearestSnapOffsets and searchForPotentialSnapPoints, reducing the amount of times that we walk the snap point list and making it more obvious what the return values of the arguments are. In addition, we can have this method return the geometric next and previous snap offsets if they exist, rather than two offsets that might both be greater or lesser than the target. This is useful because parts of the specification refer to these two values when implementing certain features. This makes the code a lot easier to read and very slightly more efficient.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210616/3579e13c/attachment-0001.htm>


More information about the webkit-unassigned mailing list