Patent ID: 11966576
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 12:
13. An apparatus comprising:
a sensor configured to collect user sliding operation information comprising a first location on a display page, a sliding speed, a pressing duration before sliding, a sliding direction, and a second location, wherein the first location is an initial location of a user sliding operation, and wherein the second location is a location where the user sliding operation ends;
a memory coupled to the sensor and configured to store the user sliding operation information; and
a processor coupled to the sensor and the memory and configured to:
when the first location is not located on a first icon, and when the sliding speed is less than a sliding speed threshold:
determine, based on the first location and the second location, a sliding distance () of the user sliding operation, wherein  is a projection distance of a straight-line distance between the second location and the first location in the sliding direction;
determine a supplementary parameter (N) by dividing  by a unit switching distance (Δh), wherein Δh is greater than or equal to a first width of a single icon and less than or equal to a second width of an entire screen, and wherein Δh is an integer multiple of the first width; and
move second icons by X rows or X columns along the sliding direction, wherein X is a quantity of rows or columns of third icons in an N×Δh range, and wherein X is an integer; and when the first location is located on the first icon, and when a pressing duration is greater than or equal to a first duration threshold and less than or equal to a second duration threshold:
move, in the sliding direction, column icons in a related column of the first icon or row icons in a related row of the first icon.