I am using a custom cursor (SVG file) which is activated when hovering a button. I want this cursor to have the same size with default cursor on all platforms.
I wonder if it is possible to get default cursor size and set size of custom cursor accordingly.
A similar question was asked here almost 8 years ago. I was hoping it would be possible with new technologies.
There is no method or API of getting the size of the cursor on a user's OS. However, if you're adding a custom cursor, it is recommended you set its size to 32x32 as that is the size that is most compatible across most OS's.
Unfortunately, there is no property to adjust cursor size with jquery. However since you are using a custom image you might find this useful:
http://www.ajaxblender.com/howto-create-custom-image-cursors.html.
This will show you how to create a custom cursor without a .cur file and add some css to adjust the size.