07-20-2013 03:55 PM
I have been working with the wireframes powerpoint slides to do mock ups of my UI and came across a gesture icon for "press and tap" distinct from "press" and "tap".
I see references to "press and tap" here in the Native documentation:
but for someone with my limited programming ability, I would like to know what "press and tap" is, if I define as "press and hold your finger in place for a moment so that perhaps a popup list of options appears", possibly analagous to a "secondary mouse click" on a desktop OS platform, and a tap is just a normal brief touch of an object, analagous to a "primary mouse click".
Is there a document that defines all the gestures available to WebWorks apps that might either define this and state explicitly if it is supported?
07-20-2013 10:36 PM
It's rather unfortunately named. IMO a press is longer than a tap, so the name doesn't make sense. It should be called "tap and hold". That means tap, then touch again but leave your finger on the screen. As far as I know, this gesture isn't used on BB10.
A gesture that is frequently used is press and hold, i.e. touch an item and leave your finger on the screen. This is normally used to call up a context menu for the item you touch, similar to right-click with a mouse.
Besides the UI guidelines page on gestures, I don't think very much is documented. Webworks provides little out-of-the-box, but rather leaves it up to you to choose which gesture handler you want (or build your own). Hammer.js is a popular choice. JQuery Mobile also provides some very basic gesture support.
07-22-2013 12:28 AM
The C++ version has definitions of what they support
TapHandler, handles single tap gesture
DoubleTapHandler, handles double tap gesture
PinchHandler, handles pinch gesture
LongPressHandler, handles long press gesture
Native (worth checking as it's a complete list) ...
As mentioned above hammer.js is quite good as well