Changed joystick color to black for better contrast on white background, also comment about why joystick's zone and zone's container should be a DOM element.
Append <video> in ShadowDOM root instead of document body.
Removed controls attribute on <video> elements to prevent accidently pause it.
We should avoid mixing spaces and tabs as indent. Maybe add an eslint rule to enforce it: https://eslint.style/packages/js .
Changed joystick color to black for better contrast on white background, also comment about why joystick's zone and zone's container should be a DOM element.
Append
<video>
in ShadowDOM root instead of document body.Removed
controls
attribute on<video>
elements to prevent accidently pause it.