Hacker News new | ask | show | jobs
by Meowlulz 2884 days ago
Totally weird but that was an unnecessary tidbit of a script so I removed it. Thanks for pointing it out.
1 comments

Still not working on Chrome (67.0.3396.99)

Uncaught TypeError: Cannot read property '0' of undefined at update_mouse_position (javascript.min.js:1) at HTMLCanvasElement.on_canvas_mouse_down (javascript.min.js:1) update_mouse_position @ javascript.min.js:1 on_canvas_mouse_down @ javascript.min.js:1

I'm unable to reproduce so far sorry :\ What box are you running this on?
ChromeOS is the non-working one.

It works fine on macOS 69.0.3494.0 and 67.0.3396.99

Looking at the source, it wants to read a touch event whenever touch is supported (in update_mouse_position)-- but I'm using a mouse. Even though there's a touch screen, too :) (And using the touch screen, I can draw)

Either way, this is awesome - thank you for putting this together!

wow, ok I'll definitely look into it, I'm pretty sure I can get my hands on a ChromeOS box. Thank you so very much for taking the time to point out exactly at what's going on.
Same issue. I've got a touchscreen but use a mouse, works on touchscreen, not mouse. Cannot drag around the canvas even with touch tho.