摘要 |
A system for determining scroll direction intent may include one or more processors and a memory. The one or more processors may receive first and second ordered pairs of coordinates of a scroll event. The one or more processors may construct a square that has a first vertex at the first ordered pair of coordinates and an opposite vertex at a third ordered pair of coordinates for which each coordinate has an absolute value that is equal to a maximum absolute coordinate value of the second ordered pair of coordinates, where the signs of the coordinates of the third ordered pair are equivalent to the signs of the corresponding coordinates of the second ordered pair. The one or more processors may determine an intended scroll direction of the scroll event based at least partially on the constructed square and the first and second ordered pair of coordinates. |