]>
git.proxmox.com Git - sencha-touch.git/blob - src/src/event/recognizer/Recognizer.js
2 * A base class for all event recognizers in Sencha Touch.
4 * Sencha Touch, by default, includes various different {@link Ext.event.recognizer.Recognizer} subclasses to recognize
5 * events happening in your application.
7 * ## Default recognizers
9 * * {@link Ext.event.recognizer.Tap}
10 * * {@link Ext.event.recognizer.DoubleTap}
11 * * {@link Ext.event.recognizer.LongPress}
12 * * {@link Ext.event.recognizer.Drag}
13 * * {@link Ext.event.recognizer.HorizontalSwipe}
14 * * {@link Ext.event.recognizer.Pinch}
15 * * {@link Ext.event.recognizer.Rotate}
17 * ## Additional recognizers
19 * * {@link Ext.event.recognizer.VerticalSwipe}
21 * If you want to create custom recognizers, or disable recognizers in your Sencha Touch application, please refer to the
22 * documentation in {@link Ext#setup}.
26 Ext
.define('Ext.event.recognizer.Recognizer', {
27 mixins
: ['Ext.mixin.Identifiable'],
32 onRecognized
: Ext
.emptyFn
,
33 onFailed
: Ext
.emptyFn
,
37 constructor: function(config
) {
38 this.initConfig(config
);
43 getHandledEvents: function() {
44 return this.handledEvents
;
52 this.getOnFailed().apply(this.getCallbackScope(), arguments
);
58 this.getOnRecognized().apply(this.getCallbackScope(), arguments
);