Fix order of ternary expression for mouse move source type (#586)
Co-authored-by: Yash Kumar <yashkumar@Yashs-MacBook-Pro-2.local>
This commit is contained in:
@@ -209,10 +209,10 @@ function initMoveObserver(
|
|||||||
timeOffset: Date.now() - timeBaseline,
|
timeOffset: Date.now() - timeBaseline,
|
||||||
});
|
});
|
||||||
wrappedCb(
|
wrappedCb(
|
||||||
evt instanceof MouseEvent
|
evt instanceof DragEvent
|
||||||
? IncrementalSource.MouseMove
|
|
||||||
: evt instanceof DragEvent
|
|
||||||
? IncrementalSource.Drag
|
? IncrementalSource.Drag
|
||||||
|
: evt instanceof MouseEvent
|
||||||
|
? IncrementalSource.MouseMove
|
||||||
: IncrementalSource.TouchMove,
|
: IncrementalSource.TouchMove,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user