SketchUp / api-issue-tracker

Public issue tracker for the SketchUp and LayOut's APIs
https://developer.sketchup.com/
39 stars 10 forks source link

incorrect extension cursor hotspot on Windows Sketchup 2024 #982

Open slbaumgartner opened 3 weeks ago

slbaumgartner commented 3 weeks ago

As of SketchUp 2024 (24.0.553), the cursor hotspot in one of my extensions (Angular Dimension 2, at sketchUcation) is no longer being set correctly on Windows 10 or 11. The extension code sets it to 0, 31, which should be the lower left corner, but the hotspot on the GUI acts like it is at 0,0, the upper left corner. It works correctly on all prior versions of SketchUp on Windows and also on macOS. I tried changing the hotspot coordinates in the code, and the changes are ignored. I suspect this resulted from some change in how SVG is handled, likely interacting with something about the specific svg files for this extension, created using InkScape, but I have been unable to find a fix.

thomthom commented 2 weeks ago

Can you attach a sample cursor along with a minimal Tool class that sets it?

slbaumgartner commented 2 weeks ago

Here is a zip of a minimal Tool to demonstrate the issue.

SLB_Cursor_Demo.zip

slbaumgartner commented 1 week ago

I subsequently redrew the cursor svg using Affinity Designer, and the new svg does not have the problem.