B
B
Bogdan2019-02-25 17:57:23
JavaScript
Bogdan, 2019-02-25 17:57:23

mousemove and canvas event?

Hello. Tell me please.
I have a canvas in a box that has a rounded radius and overflow: hidden. And for some reason, mousemove works on an invisible part of the canvas.
5c7402331038d342558769.png
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Veronica, 2019-02-25
@niktariy

i did like this

.canvas {
    width: inherit;
    height: inherit;
    border-radius: 50%;
}

and all is well

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question