←back to thread

Material 3 Expressive

(design.google)
333 points meetpateltech | 1 comments | | HN request time: 0s | source
Show context
bflesch ◴[] No.44004143[source]
How did these clowns manage to make my mouse cursor laggy? It is incomprehensible for me to live in such a big bubble with such a big paycheck and then spend zero brainpower on systems without graphics acceleration.

This is extremely bad engineering and these engineers should be called out for it. It takes a special kind of person to deliver this and be proud of it.

Once they made their millions at Google these engineers will be our landlords, angel investors, you name it. The level of ignorance is unfathomable. Very sad.

replies(42): >>44004209 #>>44004297 #>>44004309 #>>44004310 #>>44004330 #>>44004378 #>>44004468 #>>44004549 #>>44004638 #>>44004825 #>>44004861 #>>44004919 #>>44005080 #>>44005120 #>>44005144 #>>44005713 #>>44005761 #>>44005939 #>>44006054 #>>44006202 #>>44006222 #>>44006355 #>>44006362 #>>44006397 #>>44006542 #>>44006933 #>>44007513 #>>44007884 #>>44008050 #>>44008069 #>>44008126 #>>44008380 #>>44008411 #>>44008487 #>>44008805 #>>44008857 #>>44008864 #>>44009031 #>>44009167 #>>44009897 #>>44010290 #>>44010679 #
fkyoureadthedoc ◴[] No.44004297[source]
Probably because they seem to be recreating the cursor on the webpage for that cool effect. Even on a good computer I have some input lag, and going from very low input lag and 120fps cursor to that it feels slightly off. Although I might be imagining it just because it looks different than the normal one...
replies(1): >>44004988 #
ImHereToVote ◴[] No.44004988[source]
Browser don't support replacing cursor images natively for obvious reasons. You have to use JavaScript for that.
replies(2): >>44005073 #>>44005816 #
jampekka ◴[] No.44005073{3}[source]
CSS supports replacing cursor images natively.

https://developer.mozilla.org/en-US/docs/Web/CSS/cursor

replies(3): >>44006412 #>>44006455 #>>44007617 #
Ajedi32 ◴[] No.44006455{4}[source]
In this case it looks like they didn't just want an image though, they wanted the cursor to invert the color of whatever part of the web page it's over, and to seamlessly morph into a selection highlight whenever you mouse over certain controls. Seems like that's a lot harder to make performant.
replies(1): >>44009559 #
freeone3000 ◴[] No.44009559{5}[source]
You can do that by changing the cursor icon for the elements in question. The CSS rule does support per-element swapping (because of course it does, that’s how a text input has a bar but a button has a pointer).
replies(1): >>44009877 #
jampekka ◴[] No.44009877{6}[source]
The cursor color inversion can't be done with CSS though.
replies(2): >>44009879 #>>44010273 #
1. johnisgood ◴[] No.44010273{7}[source]
I am pretty sure it is doable in CSS.