mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-18 20:51:46 +03:00
feat: fix selection on scroll
This commit is contained in:
parent
7dd66e6737
commit
7177e62517
@ -233,7 +233,8 @@ export const SelectionRect = forwardRef<SelectionRef, SelectionProps>(
|
|||||||
startPointRef.current &&
|
startPointRef.current &&
|
||||||
endPointRef.current &&
|
endPointRef.current &&
|
||||||
scrollManager.scrollContainer &&
|
scrollManager.scrollContainer &&
|
||||||
scrollContainerRect.current
|
scrollContainerRect.current &&
|
||||||
|
mouseType.current === 'down'
|
||||||
) {
|
) {
|
||||||
const xSign = DIRECTION_VALUE_MAP[direction[0]] || 0;
|
const xSign = DIRECTION_VALUE_MAP[direction[0]] || 0;
|
||||||
const ySign = DIRECTION_VALUE_MAP[direction[1]] || 0;
|
const ySign = DIRECTION_VALUE_MAP[direction[1]] || 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user