Post Reply 
wait(-1) kinetic scrolling
11-04-2015, 12:36 AM
Post: #1
wait(-1) kinetic scrolling
In a standard scrolling i get a list:
when i touch{0,x,x}, while scrolling {1,x,x}, when i stop touching {2}

in a kinetik scrolloing
when i touch{0,x,x}, while scrolling {1,x,x}, when i stop touching screen dont get nothing

How to identify a kinetic scrolling ?

sorry for my bad english
Find all posts by this user
Quote this message in a reply
11-04-2015, 02:15 AM
Post: #2
RE: wait(-1) kinetic scrolling
Normally, you should not need to do so. What is happening with kinetic scrolling is that the system internally triggers a timer that counts down until stop. Scroll messages are sent until the timer runs out (with math to handle decreasing in a certain pattern as a function or initial velocity and length of the timer). As long as you are handling a scroll properly, nothing else is needed in your implementation. In fact, there is no where in the system that we've had a need to do any special handling on scrolling.

Is there a particular need or reason you feel you need a message at the end?

TW

Although I work for the HP calculator group, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
11-04-2015, 03:53 PM
Post: #3
RE: wait(-1) kinetic scrolling
I think there should be a pointer to start the kinetic scroll, to isolate and discriminate if its necessary.



Creo que es necesiario insertar un punto de control para el scroll cinetifoc para poder identificiarlo aislarlo y descriminarlos si fuese necesario.

Saludos.
Find all posts by this user
Quote this message in a reply
11-04-2015, 05:16 PM
Post: #4
RE: wait(-1) kinetic scrolling
(11-04-2015 12:36 AM)fabila Wrote:  In a standard scrolling i get a list:
when i touch{0,x,x}, while scrolling {1,x,x}, when i stop touching {2}

in a kinetik scrolloing
when i touch{0,x,x}, while scrolling {1,x,x}, when i stop touching screen dont get nothing

How to identify a kinetic scrolling ?

sorry for my bad english

Use MOUSE() in addition to WAIT(-1). Have WAIT(-1) detect if mouse events occur, and if so, use the MOUSE() command to determine kinetic scrolling.

Code:

  LOCAL key;

  // change run to 0 to exit the while loop
  key:=WAIT(-1);
  CASE
    IF TYPE(key)==6 THEN
      // we have touchscreen events
      CASE
        IF key(1)==0 THEN kmMouseDown(); END; // do kinetic scrolling here
        IF key(1)==1 THEN kmMouseUp(); END;
        // ... more mouse events
        IF key(1)==7 THEN kmMouseLongClick(); END;

        kmMouseEvent(); // default handler
      END;
    END; // end of touch events

    // at this point, all touch events were handled due to the
    // TYPE(key)==6 check; so only key-presses are left
    // and if a touch event occurred, these tests below are
    // never reached

    IF key==0 THEN kmDoAppsKey(); END;
    // ... more key definitions here
    IF key==50 THEN kmDoPlusKey(); END;

    kmOtherEvents(); // handle all remaining undefined keys
  END;

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
07-25-2017, 05:42 AM
Post: #5
RE: wait(-1) kinetic scrolling
It would be good that WAIT (-1) returns a "Mouse up" after completing the kinetic scrolling.

Viga C | TD | FB
Visit this user's website Find all posts by this user
Quote this message in a reply
07-25-2017, 04:30 PM
Post: #6
RE: wait(-1) kinetic scrolling
Why? What would that be used for?

TW

Although I work for the HP calculator group, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
07-26-2017, 05:19 AM
Post: #7
RE: wait(-1) kinetic scrolling
Hello,

From what I remember, there is one spot in the system where we do something special on Kinetic scroll, and I had to add some info (flag) to identify it, however, I do not remember the exact what/why. And this is, unfortunately, not user accessible. Sorry.

Cyrille

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)