'Find in Page' highlighted result scrolls at the bottom

Description of the issue:
In Find in page the highlighted result always scroll at the bottom when ‘next’ or ‘previous’ result is on the same current view.

How can this issue be reproduced?

  1. Goto https://raw.githubusercontent.com/OpenIB/OpenIB/master/post.php
  2. Search "$post"
  3. Click “next” or “previous” arrow

Expected result:

  1. Goto https://github.com/OpenIB/OpenIB/blob/master/post.php
  2. Search "$post"
  3. Click “next” or “previous” arrow

Brave Version( check About Brave):
1.45.116

Mobile Device details
Android 11

Additional Information:
It seems that it happens when searching on “raw” text format files like ".js", ".txt", ".php", etc.

Hello @Purku

Thank you for reaching out and sorry to hear you’re having trouble with Brave. Could you kindly share a screenshot of the issue? From there we can look further into the matter.

Be waiting for your response and have a great day!