Unwanted scrolling / highlighting when using synctex backward search
I'm creating PDFs with LaTeX from a text editor using pdflatex.
Using synctex you can jump from a line in the editor to the corresponding position in the PDF (forward-search) or the other way around (backward-search). Evince and many editors support this.
When performing the backward search from evince to my editor using Ctrl+Left-click in evince, the focus jumps to the editor and the editor displays the corresponding line in the tex file.
The problem is the following: Evince selects some part of the text when doing Ctrl+Left-click and then starts scrolling when the PDF can move in the direction of the editor window. The scrolling stops, once you click in the evince window and the highlighting is discarded. What I would expect is the evince window to stay at the position and not scroll anywhere, when it does not have the focus anymore.
Example: We use gedit as text editor. We need gedit-plugins installed and the synctex plugin activated.
To reproduce this use the following file.tex file (any tex file with multiple lines should work):
\documentclass{scrartcl}
\usepackage{blindtext}
\begin{document}
Foo
\blindtext[10]
Bar
\blindtext[2]
Baz
\end{document}
We open file.tex in gedit and build it from a terminal using pdflatex which comes with texlive
pdflatex --synctex=1 file.tex
Then we do Ctrl+Left-Click on a line in the tex (e.g. Bar) in gedit, which will open evince via synctex, do a forward search and jump to the corresponding PDF position (as intended). The example has multiple pages, but for the bug to be noticeable evince must be able to scroll, so maybe zoom into the PDF a bit. Now, if we do Ctrl+Left-Click in evince anywhere in evince in the text of PDF, the cursor will jump back gedit (also as intended) but then the problem described above occurs.
This might be related to issue #754 (closed)
This can probably be fixed by not highlighting text when the synctex backward search call is triggered.
My system: I'm using evince 3.29.1 (but this also happened in 3.28.2), pdfTeX 3.14159265-2.6-1.40.19 (TeX Live 2018/Arch Linux), gedit Version 3.28.1 and an up-to-date Manjaro Linux running Kernel 4.17.9-1-MANJARO. Window manager is i3. The problem also occurs using sublime text 3 with LatexTools, so I assume it's an evince problem.
Let me know if you need more info.