←back to thread

293 points ulrischa | 2 comments | | HN request time: 0.44s | source
Show context
duxup ◴[] No.42174148[source]
Why are screenX and screenY relevant here as far as their code goes?

Where they using those values in their code?

Very interesting article but I'm missing the step where it would impact their code ...

replies(1): >>42174292 #
t43562 ◴[] No.42174292[source]
...because when they are 0 one can infer that the event came from a keypress rather than a mouse. They want to know this.
replies(3): >>42174436 #>>42174868 #>>42175013 #
hyperhopper ◴[] No.42175013[source]
This does not work when the mouse is actually at 0,0
replies(1): >>42175496 #
xboxnolifes ◴[] No.42175496[source]
An imperfect solution for a situation that will practically never happen and have no noticeable downside.
replies(1): >>42179370 #
1. noworriesnate ◴[] No.42179370[source]
It'll screw up UI tests
replies(1): >>42179861 #
2. xboxnolifes ◴[] No.42179861[source]
Clearly not, otherwise this bug would have been found much sooner.