Hi @maxackley, this is not the best approach to test the event parameter. I think you can add the following code snippet into `jquery.finger-tests.ts`

```typescript
$('body').on('drag', e => {
    if ('vertical' == e.orientation) return;
    e.preventDefault();
});

$('body').on('drag', '.drag', e => {
    if ('vertical' == e.orientation) return;
    e.preventDefault();
});

$('#menu').on('flick', function (e) {
    if ('horizontal' == e.orientation) {
        if (1 == e.direction) {
            $(this).addClass('is-opened');
        }
        else {
            $(this).removeClass('is-opened');
        }
    }
});
```

And then add this following code to your `jquery.finger.d.ts` file:

```typescript
interface JQuery {
    on(events: 'tap', handler: (eventObject: JQueryFingerEventObject, ...args: any[]) => any): JQuery;
    on(events: 'doubletap', handler: (eventObject: JQueryFingerEventObject, ...args: any[]) => any): JQuery;
    on(events: 'press', handler: (eventObject: JQueryFingerEventObject, ...args: any[]) => any): JQuery;
    on(events: 'drag', handler: (eventObject: JQueryFingerEventObject, ...args: any[]) => any): JQuery;
    on(events: 'flick', handler: (eventObject: JQueryFingerEventObject, ...args: any[]) => any): JQuery;

    on(events: 'tap', data: any, handler: (eventObject: JQueryFingerEventObject, ...args: any[]) => any): JQuery;
    on(events: 'doubletap', data: any, handler: (eventObject: JQueryFingerEventObject, ...args: any[]) => any): JQuery;
    on(events: 'press', data: any, handler: (eventObject: JQueryFingerEventObject, ...args: any[]) => any): JQuery;
    on(events: 'drag', data: any, handler: (eventObject: JQueryFingerEventObject, ...args: any[]) => any): JQuery;
    on(events: 'flick', data: any, handler: (eventObject: JQueryFingerEventObject, ...args: any[]) => any): JQuery;
}
```

With this pattern matching, always that you use `tab`, `doubletap`, `press`, `drag` or `flick` event, the event object type will be `JQueryFingerEventObject`.