Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Flicking / Panning with Inertia


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Sep 3, 2015 5:40 PM Last Post By: Eli M
Martin Brandin

Posts: 1
Registered: 11/1/09
Flicking / Panning with Inertia  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 2, 2015 12:15 AM
Hello,

I'm writing an FMX application (foremost for an Android tablet). I have implemented gestures, such as Zoom, Rotate and Pan for a TImage and they work fine. But now I want to add support for "flicking" or "panning with inertia". I have tried looking for examples online but I've not found any useful examples or tips.

I would like to use the InertiaVector, but it is always zero (or close to, or NaN). I never get at {code}(TInteractiveGestureFlag.GfInertia in EventInfo.Flags) = True{/code} in the OnGesture event either.

Am I taking the wrong approach looking to use the Inertia Vector in TGestureEventInfo? Do I need to enable inertia some way? Or do I need to go the hard way and implement my own inertia vector?

I'm using Delphi XE7 on a win8.1 computer and a Samsung Galaxy Tab 4 7" tablet.
Eli M

Posts: 1,346
Registered: 11/9/13
Re: Flicking / Panning with Inertia  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 3, 2015 5:40 PM   in response to: Martin Brandin in response to: Martin Brandin
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02