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

Swipe event

XMLWordPrintable

      Add SwipeEvent as a subclass of GestureEvent (next to ScrollEvent, RotateEvent, ZoomEvent). Use native swipe recognition where available, for other platforms implement swipe recognition on toolkit level. Recognize and deliver the gesture as a single event, after possible scroll gesture finishes; deliver it to the node picked on gesture coordinates - for track pad it means location of mouse cursor, for touch screen it means the center of the trajectories of all fingers.

      Provide four event types: SWIPE_LEFT, SWIPE_RIGHT, SWIPE_UP, SWIPE_DOWN, with the usual setOnSwipeLeft, ...

      Provide a touchCount field for the event reporting number of fingers used.

            psafrata Pavel Šafrata
            psafrata Pavel Šafrata
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: