×

Method and implementation device for inertial movement of window object

  • US 8,462,132 B2
  • Filed: 07/06/2011
  • Issued: 06/11/2013
  • Est. Priority Date: 07/07/2010
  • Status: Active Grant
First Claim
Patent Images

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,wherein obtaining the current quantity of displacement and quantity of rotation of the window object according to the deceleration of linear speed and the deceleration of angular speed in Step D is;

    quantity of displacement corresponding to Ti period of the second timer is;



    X,Δ

    Y)=(Vi

    Vdec*Tg)*Tg;

    quantity of rotation corresponding to Ti period of the second timer is;

    α

    i=(Vai

    Vadec*Tg)*Tg;

    where Vdec is the deceleration of linear speed, Vadec is the deceleration of angular speed;

    Vi is initial linear speed corresponding to Ti period of the second timer;

    Vai is initial angular speed corresponding to Ti period of the second timer;

    Tg is a timing period of the second timer;

    an initial linear speed and an initial angular speed corresponding to a first period of the second timer after the input device releases the window object are the ones obtained in Step C respectively.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×