Orderable
Summary: _typescript_ Reviewed By: danielbuechele Differential Revision: D17181370 fbshipit-source-id: 079a1a89f30665e4c86356ace299bd086819bcfb
This commit is contained in:
committed by
Facebook Github Bot
parent
f6b371e2be
commit
be3772bd16
@@ -85,14 +85,14 @@ export default class Orderable extends React.Component<
|
||||
this.setProps(props);
|
||||
}
|
||||
|
||||
_mousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any | undefined;
|
||||
_mouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any | undefined;
|
||||
_mousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | undefined;
|
||||
_mouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | undefined;
|
||||
timer: any;
|
||||
|
||||
sizeKey: 'width' | 'height';
|
||||
offsetKey: 'left' | 'top';
|
||||
mouseKey: 'offsetX' | 'offsetY';
|
||||
screenKey: 'screenX' | 'screenY';
|
||||
sizeKey: 'width' | 'height' = 'width';
|
||||
offsetKey: 'left' | 'top' = 'left';
|
||||
mouseKey: 'offsetX' | 'offsetY' = 'offsetX';
|
||||
screenKey: 'screenX' | 'screenY' = 'screenX';
|
||||
|
||||
containerRef: HTMLElement | undefined;
|
||||
tabRefs: {
|
||||
@@ -159,7 +159,6 @@ export default class Orderable extends React.Component<
|
||||
};
|
||||
|
||||
_startMove(activeKey: string, event: React.MouseEvent) {
|
||||
// $FlowFixMe
|
||||
const clickOffset = event.nativeEvent[this.mouseKey];
|
||||
|
||||
// calculate offsets before we start moving element
|
||||
|
||||
Reference in New Issue
Block a user