Method and implementation device for inertial movement of window object
First Claim
1. A method for inertial movement of a window object, comprising:
- A;
monitoring initial touch operation of an input device, recording initial touch coordinate and touch time, and starting a first timer;
B;
in the process of dragging the window object, periodically triggering, by the first timer, an event of obtaining quantity of displacement and quantity of rotation that are generated on a screen by a user through the input device relative to a previous time point, and sending the obtained quantity of displacement and quantity of rotation to the window object;
C;
when the user releases the window object, obtaining initial linear speed and initial angular speed of the window object, and starting a second timer;
D;
based on the initial linear speed and the initial angular speed, periodically triggering, by the second timer, an event of obtaining current quantity of displacement and quantity of rotation of the window object according to deceleration of linear speed and deceleration of angular speed, and sending the obtained current quantity of displacement and quantity of rotation to the window object;
E;
when the initial linear speed and the initial angular speed corresponding to current period of the second timer are less than or equal to 0, terminating the process of inertial movement of the window object.
1 Assignment
0 Petitions
Accused Products
Abstract
Provided are a method and an implementation device for inertial movement of a window object, to realize inertial movement effect of a window object based on linear speed and angular speed. When an input device releases a window object being dragged, the initial linear speed and the initial angular speed are obtained, and then the deceleration of linear speed and the deceleration of angular speed are used to obtain quantity of displacement and quantity of rotation corresponding to each processing period; the inertial movement effect of the window object is simulated after the release of a mouse button or the release of a finger from a touch screen. Through the method and device, the inertial movement effect of the window object is realized, thereby facilitating touch operation, enhancing ease of use of terminal software, and improving user experience.
14 Citations
16 Claims
-
1. A method for inertial movement of a window object, comprising:
-
A;
monitoring initial touch operation of an input device, recording initial touch coordinate and touch time, and starting a first timer;B;
in the process of dragging the window object, periodically triggering, by the first timer, an event of obtaining quantity of displacement and quantity of rotation that are generated on a screen by a user through the input device relative to a previous time point, and sending the obtained quantity of displacement and quantity of rotation to the window object;C;
when the user releases the window object, obtaining initial linear speed and initial angular speed of the window object, and starting a second timer;D;
based on the initial linear speed and the initial angular speed, periodically triggering, by the second timer, an event of obtaining current quantity of displacement and quantity of rotation of the window object according to deceleration of linear speed and deceleration of angular speed, and sending the obtained current quantity of displacement and quantity of rotation to the window object;E;
when the initial linear speed and the initial angular speed corresponding to current period of the second timer are less than or equal to 0, terminating the process of inertial movement of the window object. - View Dependent Claims (2, 3, 4, 5, 11, 12, 13)
-
-
6. A device for inertial movement of a window object, comprising:
-
a touch point capturing unit, configured to capture operation that an input device drags the window object on a screen, and generate corresponding control information; a drag processing unit, configured to realize dragging effect of the window object according to the control information sent from the touch point capturing unit, obtain initial linear speed and initial angular speed when the input device releases the window object, and send the obtained initial linear speed and the initial angular speed to an inertia processing unit; and the inertia processing unit, configured to, based on the initial linear speed and the initial angular speed sent from the drag processing unit, realize inertial movement effect according to deceleration of linear speed and deceleration of angular speed. - View Dependent Claims (7, 8, 9, 10, 14, 15, 16)
-
Specification