mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 03:33:27 +00:00
Correctly check if deletions are within selection.
This commit is contained in:
parent
3f441ff38c
commit
722d75f6ef
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ define [
|
|||
entry.focused = (entry.offset <= selection_offset_start <= entry.offset + entry.content.length)
|
||||
$scope.reviewPanel.nSelectedEntries++ if isEntryWithinSelection
|
||||
else if entry.type == "delete"
|
||||
isEntryWithinSelection = selection_offset_start <= entry.offset >= selection_offset_start
|
||||
isEntryWithinSelection = selection_offset_start <= entry.offset <= selection_offset_end
|
||||
entry.focused = (entry.offset == selection_offset_start)
|
||||
$scope.reviewPanel.nSelectedEntries++ if isEntryWithinSelection
|
||||
else if entry.type in [ "add-comment", "bulk-actions" ] and selection
|
||||
|
|
Loading…
Reference in a new issue