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);
|
this.setProps(props);
|
||||||
}
|
}
|
||||||
|
|
||||||
_mousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any | undefined;
|
_mousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | undefined;
|
||||||
_mouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any | undefined;
|
_mouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | undefined;
|
||||||
timer: any;
|
timer: any;
|
||||||
|
|
||||||
sizeKey: 'width' | 'height';
|
sizeKey: 'width' | 'height' = 'width';
|
||||||
offsetKey: 'left' | 'top';
|
offsetKey: 'left' | 'top' = 'left';
|
||||||
mouseKey: 'offsetX' | 'offsetY';
|
mouseKey: 'offsetX' | 'offsetY' = 'offsetX';
|
||||||
screenKey: 'screenX' | 'screenY';
|
screenKey: 'screenX' | 'screenY' = 'screenX';
|
||||||
|
|
||||||
containerRef: HTMLElement | undefined;
|
containerRef: HTMLElement | undefined;
|
||||||
tabRefs: {
|
tabRefs: {
|
||||||
@@ -159,7 +159,6 @@ export default class Orderable extends React.Component<
|
|||||||
};
|
};
|
||||||
|
|
||||||
_startMove(activeKey: string, event: React.MouseEvent) {
|
_startMove(activeKey: string, event: React.MouseEvent) {
|
||||||
// $FlowFixMe
|
|
||||||
const clickOffset = event.nativeEvent[this.mouseKey];
|
const clickOffset = event.nativeEvent[this.mouseKey];
|
||||||
|
|
||||||
// calculate offsets before we start moving element
|
// calculate offsets before we start moving element
|
||||||
|
|||||||
Reference in New Issue
Block a user