highlight all in range

This commit is contained in:
Abhinav 2021-11-03 16:59:23 +05:30
parent 040776bb07
commit 3eb6f68da0

View file

@ -339,8 +339,8 @@ const PhotoFrame = ({
isShiftKeyPressed && (rangeStart || rangeStart === 0)
}
isInsSelectRange={
(index >= rangeStart + 1 && index <= currentHover) ||
(index >= currentHover && index <= rangeStart - 1)
(index >= rangeStart && index <= currentHover) ||
(index >= currentHover && index <= rangeStart)
}
/>
);