Mouse cursor offset from "point of action"??

Hello,
(observed with MATLAB 2016b, on MAC OS)
I have a script that produces a GUI. Until last week I have not ever seen this problem, but now it happens every time I run the GUI.
To interact with the GUI I have to place the mouse cursor just a few centimeters above the point I'm supposed to click. If I move the window, the problem disappears => the mouse cursor corresponds to what I should click.
This happens with an attached screen to the laptop, but also just with the laptop.
While I can come around by moving the window, this is highly frustrating.
Any clues?

 Accepted Answer

I am not sure it is a macOS problem.
I am having the same problem when creating ROI, it appears at the wrong position. This occurs with my GUI if I use Matlab 2021a and 2021b (one monitor, various screen resolutions) with macOS 10.15.7. However, it works fine with Matlab 2020b and there is no shift.
In addition, I only have this problem with a GUI and not if I use a normal figure window.
Any help on that would be much appreciated.

1 Comment

I'm also experiencing this issue, but I'm using Matlab 2020b. Is anyone aware of a workaround to move/modify the crosshairs to be in the correct position?

Sign in to comment.

More Answers (1)

Jan
Jan on 17 Mar 2017
Edited: Jan on 17 Mar 2017
This is a problem of the Macs (not of Matlab), which occurred repeatedly since 2012. Some users had success with changing the screen resolution.

6 Comments

Thanks, And can you point me to a thread discussing this in more detail. In principle it could still be Matlab having the problem, right? If it does not occur in Windows, and on Mac only with Matlab...
You want me to google this for you? Hm.
... Well, I don't think this is useful.
It would be nice if it is a Matlab related problem. Then asking TMW for a workaround would be an option. I did not found something in the bug reports, but knowing the OS-X and Matlab version might be useful for further investigations.
Does the problem happen, when you run OS-X with one monitor also? Did changing the resoluion help?
I see, that this answer does not solve your problem. Perhaps it is better than silence, because you know, that at least for one other person this problem is not trivial to solve also. ;-)
@Jan I am facing the same issue in windows 10 Matlab 2021b and 2022a prerelease
I have been having this issue repeatedly for the last 3 monhts (2021a on OSX Big Sur)
Me too. The cursor position says 0 in a dimension that is clearly not 0.
Same issue here. On Windows with matlab R2023a. It causes issues when using brush and datatips in uiaxes in apps.

Sign in to comment.

Categories

Find more on Graphics Performance in Help Center and File Exchange

Asked:

on 17 Mar 2017

Commented:

on 11 Sep 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!