Hovered UI Element Viewer shows wrong window/element on secondary monitor

Describe the bug

When configuring "Advanced Conditions" on a trigger and using the "Hovered UI Element Viewer" on a secondary Monitor from the main MacBook Screen, the hovered element is wrong.
The hovered UI element shows a vertical offset as can be seen in the screenshot. This does not happen on the built in Screen. I have changed resolutions to no avial. The screen in question is a Dell U2412M with 16:10 aspect ratio and 1920x1200 resolution. It is not just the viewer, the configured trigger also does not work as expected.

This also happens with all prior versions and alphas that I tested. This is not a recent regression.


Affected input device (e.g. MacBook Trackpad, Magic Mouse/Trackpad, Touch Bar, etc.):

Anything that moves the mouse pointer (eg, Mouse, Trackpad, etc)


Screenshots

The mouse cursor is clearly outside of the Better Touch Tool window but the "Hovered UI Element Viewer" shows <AXApplication: "BetterTouchTool">

Offset in the actual mouse position and the `window_title-bar-hovered". Although this happens on the built in Display as well


Device information:

  • Type of Mac: MacBook 16" M1 Pro 2021 (MacBookPro18,1)
  • macOS version: 15.3.1 (24D70)
  • BetterTouchTool version: 5.199

Additional information (e.g. crash logs, related issues, etc.):

The window_title-bar_hovered value works much better but also shows some offset form where the titlebar would actually be. Maybe this is related. However, this shows the same erroneous offset also on the built in Display.

Thanks for BTT! Without it Macs become nearly unusable for me :sweat_smile:

Edit: Text formatting

should be fixed in 5.230!

1 Like

Amazing!

Thank you for your quick reply and the fix. Sorry if I missed that update, I did not realize we're on 5.232 already, I thought I checked :see_no_evil:

Looks like it works perfectly now!