mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
fix reverse precise selection
This commit is contained in:
@@ -102,7 +102,7 @@ const topicWords = ({
|
|||||||
)?.dataset["end"] ||
|
)?.dataset["end"] ||
|
||||||
0;
|
0;
|
||||||
|
|
||||||
const reverse = parseFloat(anchorStart) > parseFloat(focusEnd);
|
const reverse = parseFloat(anchorStart) >= parseFloat(focusEnd);
|
||||||
|
|
||||||
if (!reverse) {
|
if (!reverse) {
|
||||||
setSelectedText({
|
setSelectedText({
|
||||||
|
|||||||
Reference in New Issue
Block a user