Mouse cursor offset from "point of action"??

조회 수: 14 (최근 30일)
Mads
Mads 2017년 3월 17일
댓글: Erica 2023년 9월 11일
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?

채택된 답변

Pierre Lanari
Pierre Lanari 2022년 6월 3일
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
Carl
Carl 2022년 12월 18일
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?

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Jan
Jan 2017년 3월 17일
편집: Jan 2017년 3월 17일
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
Catherine Davey
Catherine Davey 2023년 1월 10일
Me too. The cursor position says 0 in a dimension that is clearly not 0.
Erica
Erica 2023년 9월 11일
Same issue here. On Windows with matlab R2023a. It causes issues when using brush and datatips in uiaxes in apps.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by