33 lines
949 B
JavaScript
33 lines
949 B
JavaScript
|
|
/**
|
||
|
|
* Copyright (c) 2013-present, Facebook, Inc.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
|
||
|
|
'use strict';
|
||
|
|
|
||
|
|
var SyntheticMouseEvent = require('./SyntheticMouseEvent');
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @interface DragEvent
|
||
|
|
* @see http://www.w3.org/TR/DOM-Level-3-Events/
|
||
|
|
*/
|
||
|
|
var DragEventInterface = {
|
||
|
|
dataTransfer: null
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @param {object} dispatchConfig Configuration used to dispatch this event.
|
||
|
|
* @param {string} dispatchMarker Marker identifying the event target.
|
||
|
|
* @param {object} nativeEvent Native browser event.
|
||
|
|
* @extends {SyntheticUIEvent}
|
||
|
|
*/
|
||
|
|
function SyntheticDragEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
|
||
|
|
return SyntheticMouseEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
|
||
|
|
}
|
||
|
|
|
||
|
|
SyntheticMouseEvent.augmentClass(SyntheticDragEvent, DragEventInterface);
|
||
|
|
|
||
|
|
module.exports = SyntheticDragEvent;
|