portfolio-website icon indicating copy to clipboard operation
portfolio-website copied to clipboard

Cursor position on Firefox completely wrong for CSS Plane

Open henryjeff opened this issue 3 years ago • 9 comments

The cursor position for the Iframe containing the inner website is totally wrong, and this is due to an underlying bug in Firefox that has apparently existed since 9 years ago and gone through many regressions. Here are some resources I found:

Stack Overflow post #1 Stack Overflow post #2 Random Forum Bugzilla #1 Bugzilla #2

For now this issue will remain open, however I am just blocking all Firefox users with the loading screen for the time being.

henryjeff avatar Mar 31 '22 17:03 henryjeff

I know this particular site doesn't play well as a result of this bug but don't you think urge you to use a different browser could be better phrased as urge you to use a different browser while viewing this site ? Or do you really recommend people don't use Firefox as their browser?

Just sayin' 🤷

benjibee avatar May 11 '22 10:05 benjibee

Honestly, I calculating the actual position is not so hard to call it "an equally complicated workaround". :shrug:

nkoehring avatar May 11 '22 11:05 nkoehring

@benjibee Yes, I realize now how poor the wording is. I just pushed a fix that is more aligned with my original intentions. I am an avid FireFox user and supporter, I wasn't trying to urge people not not use the browser, but just let them know if they wanted to view the site, they needed to use a different browser. Thank you for calling this to my attention.

Link to the fix

Thanks again, and I apologize for the confusion. I feel like such an idiot now lol.

henryjeff avatar May 11 '22 12:05 henryjeff

@nkoehring I'd love for you to elaborate if you think you might have a fix. When I first came across this bug it was before actually adding interactions into my site, and also when I was planning on completely replacing the users cursor with a custom one inside of the iframe. Set on getting the custom cursor to work, my focus at the time was to get proper positional coordinates for mouse events inside of the iframe. When testing on FireFox I noticed the bug for the first time. I tried to fix it for a good few days, but ultimately felt that working any more was doing more harm to the project than good. I added this error, created the issue, and moved on. In light of this bug it also killed any motivations I had to make a custom cursor, which in hindsight was definitely a good move.

As I have tested my site on every browser I can get installed on my Mac, FF remains the only one with this issue. The issue now is in essence the same as it was when I first discovered it, but is noticeable just by the fact that all interactions on the iframe plane are offset by a seemingly random (but definitely not random) amount of pixels.

For anyone in this thread who wants to see how the website works with the bug, you can visit the site with the ?debug flag and it will skip the error. Thanks!

https://www.henryheffernan.com/?debug

henryjeff avatar May 11 '22 12:05 henryjeff

@henryjeff I thought that might be the case! I'm just particularly protective of Firefox, especially in relation to Google Chrome! No need to feel like an idiot about it, though, I think I got what you meant. I develop in Firefox but always have to check it in Google Chrome as well… let's just be happy it's not like "the good 'ol days" of IE, and the like.

Also I should point out your website is a masterpiece and genius, so there's that. Best of luck with the job hunt!

benjibee avatar May 11 '22 13:05 benjibee

the website seems to work correctly on firefox 121.0 (linux)

kumavis avatar Dec 31 '23 18:12 kumavis

could not see an issue browsing the debug website and playing doom on it on firefox 124.0.1 64-bit under windows 10.

Lana-chan avatar Mar 25 '24 22:03 Lana-chan

https://www.henryheffernan.com/?debug

Trying this on Firefox 125.0b4 (64-bit) on Mac and it seem to work very well.

nclm avatar Mar 26 '24 12:03 nclm

Works well on Firefox 123 (64bit Linux) image

nkoehring avatar Mar 26 '24 12:03 nkoehring

Hi I downloaded the inner website repo and when I run npm i and start it shows a blank white screen is there any solution to it?

Adhamhossam000 avatar May 04 '24 20:05 Adhamhossam000

It seems to be working perfectly on firefox 126.0.1 on windows 10.

irelephantT avatar Jun 14 '24 22:06 irelephantT

Pushed a fix to remove the error, thanks everyone in this thread, sorry for not doing this sooner lol! (commit: ad58405 )

henryjeff avatar Jun 24 '24 07:06 henryjeff