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