texstudio icon indicating copy to clipboard operation
texstudio copied to clipboard

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

Open val461 opened this issue 2 years ago • 10 comments

Environment

  • TeXstudio: 4.6.3 (git 4.6.3) Using Qt Version , compiled with Qt 6.5.2 R
  • Qt: 6.5.2
  • OS: Mac macOS 14.0 (23A344) Apple M1
  • TeX distribution: TeX Live (installed by MacTeX)
  • I use a trackpad.

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.

val461 avatar Oct 10 '23 12:10 val461

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.

muzimuzhi avatar Oct 10 '23 12:10 muzimuzhi

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 avatar Oct 10 '23 14:10 val461

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 avatar Oct 10 '23 14:10 val461

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 avatar Oct 10 '23 14:10 val461

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

val461 avatar Mar 01 '24 15:03 val461

s. Pdf-Viewer menu Window/Show/Toolbar

octaeder avatar Mar 01 '24 15:03 octaeder

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

val461 avatar Mar 01 '24 15:03 val461

In the windowed viewer you find:

image

octaeder avatar Mar 01 '24 15:03 octaeder

Sorry for resuming this thread, but I have the exact same problem. I tried the "toggle/untoggle the autohide feature" trick but didn't solve it. Any suggestion? Thanks!

WRether avatar Jul 23 '24 10:07 WRether

Just a guess.

  1. Click the button "Windowed Viewer" at the top right of the internal viewer.
  2. Close the windowed viewer.
  3. Press F7 to display the internal viewer (or click the menu Tools > View).

(I reopen this thread for you, but the issue is still resolved for me.)

val461 avatar Jul 23 '24 11:07 val461

I am also having the same issue. After doing what the comment suggest (messing a bit with the viewer), it works for a couple of inverse searches, but then it stops working again.

lluisvena avatar Feb 06 '25 16:02 lluisvena

It seems that the issue has been resolved, possibly through an update to the macos (written on the 15.3.2 version of the OS)

lluisvena avatar May 26 '25 05:05 lluisvena