feat: fix selection on scroll

This commit is contained in:
MingLIang Wang 2022-08-12 14:58:11 +08:00
parent 7dd66e6737
commit 7177e62517

View File

@ -233,7 +233,8 @@ export const SelectionRect = forwardRef<SelectionRef, SelectionProps>(
startPointRef.current &&
endPointRef.current &&
scrollManager.scrollContainer &&
scrollContainerRect.current
scrollContainerRect.current &&
mouseType.current === 'down'
) {
const xSign = DIRECTION_VALUE_MAP[direction[0]] || 0;
const ySign = DIRECTION_VALUE_MAP[direction[1]] || 0;