1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | 'use strict';
|
10 |
|
11 | var SyntheticUIEvent = require('./SyntheticUIEvent');
|
12 |
|
13 | var getEventModifierState = require('./getEventModifierState');
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | var TouchEventInterface = {
|
20 | touches: null,
|
21 | targetTouches: null,
|
22 | changedTouches: null,
|
23 | altKey: null,
|
24 | metaKey: null,
|
25 | ctrlKey: null,
|
26 | shiftKey: null,
|
27 | getModifierState: getEventModifierState
|
28 | };
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 | function SyntheticTouchEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
|
37 | return SyntheticUIEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
|
38 | }
|
39 |
|
40 | SyntheticUIEvent.augmentClass(SyntheticTouchEvent, TouchEventInterface);
|
41 |
|
42 | module.exports = SyntheticTouchEvent; |
\ | No newline at end of file |