Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8092045

Gesture and Gesture Effect

    XMLWordPrintable

Details

    Description

      Create Gestures and GestureEffects that can be integrated into Controls

      One concrete example that could be nice is a KineticScrollGesture that mimics kinetic scrolling (see the touch phone industry for how that works). This Gesture would track the force the user applied (how fast he was) and the distance of his gesture.

      This KineticScrollGesture could be used together with an InertiaGestureEffect.

      The InertiaGestureEffect would represents a custom Animation, that taking into account the force of the scroll Gesture, would manage an attribute that changes over time because of a Timeline (in the case of the current example, this attribute would be distance to keep scrolling after the scrolling gesture, by the user, has ended). This GestureEffect would have an attribute called a drag coefficient and would change the distance slower or faster.

      The two example implementation above could be used with the ClipView control (or integrated into it as attribute) or into a CustomNode for Flat Carousel with Kinetic Scroll.

      This are just two examples of implementations. There could be many more, depending on your imagination.

      Attachments

        Activity

          People

            Unassigned Unassigned
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Imported: