Canvas: JavaScript error not found: INDEX_SIZE_ERR: DOM 1 exception

Website: http://www.clubloc.com/

And it works in firefox, but not google chrome. Internet Explorer also has problems, but this is largely set when using the HTML5 canvas.

In any case, I'm trying to understand why this causes an error: Inactivity error: INDEX_SIZE_ERR: DOM exception 1

When the arrays clearly have all of these elements, I even wrote down their size, and it says 100.

Any help / guidance is appreciated.

+4
source share
1 answer

Zneak has the correct answer, I just fixed it.

I did not do radial border testing early enough ... The canvas is not like if you have a negative radius :-).

Thank zneak

+10
source

Source: https://habr.com/ru/post/1304100/


All Articles