System screen scaling + css cursor hotspot = wrong cursor shift
Categories
(Core :: Widget: Win32, defect, P3)
Tracking
()
People
(Reporter: juwagn, Unassigned, NeedInfo)
Details
Updated•8 years ago
|
Updated•7 years ago
|
Updated•3 years ago
|
Comment 1•1 year ago
|
||
I have wrong cursor shift for my custom SVG cursor in X11 on Linux.
It only occurs sometimes when I move the cursor onto the element I applied my 32x32 SVG cursor too.
Initially it will be at the wrong position but if I move the mouse around on the element, the cursor "snaps" to where it should have been all along.
CSS: {cursor: url("cursor.svg") 15 15, auto;}
However I don't have any dpi scaling.
Comment 2•1 year ago
|
||
Most people probably don't notice it because most cursors pretty much use the top left of the image as hotspot but honestly this is a pretty heavy deficiency.
Comment 3•1 year ago
|
||
This was later fixed under bug 1560081. Closing as RESOLVED DUPLICATE.
@r4ndomstuff, that sounds like a valid but completely unrelated bug; please create a new issue (including a test case) and file it under Widget: Gtk.
(In reply to r4ndomstuff from comment #2)
Most people probably don't notice it because most cursors pretty much use the top left of the image as hotspot but honestly this is a pretty heavy deficiency.
Hello,
that sounds very similar to another bug i have reported many years ago which was e10s related. (e10s is also multi-processor mode)
https://bugzilla.mozilla.org/show_bug.cgi?id=1336764
in short, the cursor won't change as long you don't move the the mouse at least for 1px.
The example can be checked and the issue persist even 8 years later.
On Chrome (and Chromium based browsers) the example works as expected.
Probably your bug is related to this one too, however not so sure about.
So far i know e10s was forcibly enabled since v68, and nowadays buggy e10s can't be disabled that easy anymore.
And so the issue with e10s is almst forever lasting now in FireFox browser.
Comment 5•1 year ago
•
|
||
(In reply to juwagn from comment #4)
Hello,
that sounds very similar to another bug i have reported many years ago which was e10s related. (e10s is also multi-processor mode)
https://bugzilla.mozilla.org/show_bug.cgi?id=1336764
in short, the cursor won't change as long you don't move the the mouse at least for 1px.
The example can be checked and the issue persist even 8 years later.
Yes, it would be good to get some more eyes on that bug. I can confirm the test case still works (EDIT: well, fails) on Windows.
@r4ndomstuff, when you file your bug, can you check if the test case in bug 1336764 works on Linux?
- If so, please add bug 1336764 to the "see also" list for your new bug.
- If not, please needinfo? me in bug 1336764, and I'll move it to Widget: Win32.
Description
•