+ 1
Why is this code not working?
I can't draw and I'm also getting a error. Please fix the code https://code.sololearn.com/W6ZnJJt5nudz/?ref=app
17 Respuestas
+ 1
https://code.sololearn.com/W9tbCLFkno47/?ref=app
+ 3
What tech stack are you using to build Android app?
+ 2
arieh thanks. But still I can't draw. Can you help?
+ 2
arieh 😔 its ok. Thanks
+ 1
Gordon still can't fix it. Help please.
+ 1
Sajid this fix it. Add window.onload = function(){ in the beggining and } in the end
+ 1
arieh i want to hold my on the screen and keep drawing wherever my finger goes. Don't these events work on mobile devices?
+ 1
I don't know how to fix that. Sorry...
0
I have change the event 'mousedown' to 'click' and it works for me. But i don't know if that is what you want...
0
If you are testing on a mobile device
The event listeners are
touchstart
touchmove
touchcancel
touchend
0
Gordon so mouse events don't work on touch screen devices?
0
except click
0
Gordon I tried to do what you were telling me but still not working. By the way, the code is from mdn.
0
Gordon thanks man. Could you please tell me if there is a way on android to click something while holding shift key? I'm not being able to do that. shiftKey always has a value of false
0
Gordon I'm building websites.
0
You used const as a variable type.
I thibk you should change it to var