Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
81155 views
1
/**
2
* Copyright 2013-2014, Facebook, Inc.
3
* All rights reserved.
4
*
5
* This source code is licensed under the BSD-style license found in the
6
* LICENSE file in the root directory of this source tree. An additional grant
7
* of patent rights can be found in the PATENTS file in the same directory.
8
*
9
* @providesModule SyntheticDragEvent
10
* @typechecks static-only
11
*/
12
13
"use strict";
14
15
var SyntheticMouseEvent = require('SyntheticMouseEvent');
16
17
/**
18
* @interface DragEvent
19
* @see http://www.w3.org/TR/DOM-Level-3-Events/
20
*/
21
var DragEventInterface = {
22
dataTransfer: null
23
};
24
25
/**
26
* @param {object} dispatchConfig Configuration used to dispatch this event.
27
* @param {string} dispatchMarker Marker identifying the event target.
28
* @param {object} nativeEvent Native browser event.
29
* @extends {SyntheticUIEvent}
30
*/
31
function SyntheticDragEvent(dispatchConfig, dispatchMarker, nativeEvent) {
32
SyntheticMouseEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent);
33
}
34
35
SyntheticMouseEvent.augmentClass(SyntheticDragEvent, DragEventInterface);
36
37
module.exports = SyntheticDragEvent;
38
39