Jacob-Griffin / TelephonePictionary2.0

New version of blowyourfaceoff.com using more modern web technology than php and raw javascript
0 stars 0 forks source link

No Dots #28

Closed Jacob-Griffin closed 11 months ago

Jacob-Griffin commented 11 months ago

Dots stopped working on chrome 116. Probably a mouse event api issue or change. Might be an actual issue with chrome

Jacob-Griffin commented 11 months ago

Fixed on dev. Apparently this is a change in chromes version of the canvas api, lineTos that don't move don't get rendered (length 0). I solved this by checking if this is a dot (same pos, line just started last frame), and if so, adding [0.1,0.1] to the position so it's an extremely short line instead of 0 length