texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.7k stars 344 forks source link

left click and cmd+click no longer working on internal viewer on mac #3324

Closed val461 closed 4 months ago

val461 commented 9 months ago

Environment

Expected behavior

The cursor jumps to the corresponding part in the Latex code. The focus goes from the internal viewer to the editor.

Actual behavior

The cursor stays in place. The focus stays on the internal viewer. The internal viewer scrolls one page lower.

How to reproduce

Compile a Latex document. Show it with the internal viewer. Hold the command key, click on a part of the pdf, then release the command key.

Workaround

Right-click on internal viewer and "Go to Source".

Seemingly related bug

A left click (without the Cmd key) on the internal viewer also scrolls one page lower, whether clicking on regular text or on a link of the hyperref package. (Links still work with other viewers.)

Other details

I tried two different files, they had this same bug. This bug started about a week ago I think. Or maybe since my last update of macOS, from 13.5.2 to 14.0 on 2023-09-28 11:51 AM.

muzimuzhi commented 9 months ago

Are the .synctex.gz files generated? Did you use something like -output-directory? And, in Configure TeXstudio - Commands, is CLI option -synctex=1 used for commands PdfLaTeX, XeLaTeX, and LuaLaTeX? image


Workaround

Right-click on internal viewer and "go to source".

Ah, so the synctex is working, just shortcut Cmd + Click doesn't work as expected.

val461 commented 9 months ago

Are the .synctex.gz files generated? Did you use something like -output-directory? And, in Configure TeXstudio - Commands, is CLI option -synctex=1 used for commands PdfLaTeX, XeLaTeX, and LuaLaTeX? image

Workaround

Right-click on internal viewer and "go to source".

Ah, so the synctex is working, just shortcut Cmd + Click doesn't work as expected.

val461 commented 9 months ago

Are the .synctex.gz files generated?

Yes.

Did you use something like -output-directory?

I don't think so.

And, in Configure TeXstudio - Commands, is CLI option -synctex=1 used for commands PdfLaTeX, XeLaTeX, and LuaLaTeX?

Yes.

Ah, so the synctex is working, just shortcut Cmd + Click doesn't work as expected.

Yes. On another editor (VSCode with Latex Workshop extension), Cmd + Click still works for inverse search. But forward search never worked on VSCode for me, which is one reason I use TexStudio.

val461 commented 9 months ago

A left click (without the Cmd key) on the internal viewer scrolls one page lower too, whether clicking on a link or on regular text.

So, links with the hyperref package no longer work in the internal viewer (but still work with other viewers).

I use a trackpad. (Main post updated with these details.)

val461 commented 4 months ago

The issue suddenly got resolved during use (maybe by toggling twice the auto-hide feature of the viewer toolbar). Thanks.

octaeder commented 4 months ago

s. Pdf-Viewer menu Window/Show/Toolbar

val461 commented 4 months ago

I don't find "Window/Show/Toolbar", but the internal viewer is working now anyway.

octaeder commented 4 months ago

In the windowed viewer you find:

image