Merge pull request #10897 from Snuffleupagus/rm-isPageVisible-check
Remove a superfluous `linkService.isPageVisible` check from `PDFFindController` (PR 10217 follow-up)
This commit is contained in:
commit
64b520404e
@ -252,9 +252,9 @@ class PDFFindController {
|
||||
// over matches at the top/bottom of pages thus making them completely
|
||||
// inaccessible when there's multiple pages visible in the viewer.
|
||||
if (pageNumber >= 1 && pageNumber <= linkService.pagesCount &&
|
||||
linkService.page !== pageNumber && linkService.isPageVisible &&
|
||||
pageNumber !== linkService.page &&
|
||||
!linkService.isPageVisible(pageNumber)) {
|
||||
break;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
case 'findhighlightallchange':
|
||||
|
Loading…
Reference in New Issue
Block a user