Answer the question
In order to leave comments, you need to log in
How to bypass blocks?
The problem is the following. There is a canvas which in the background diverges with smoky paint when the cursor moves, but when you hover over a block, for example, an inscription, it stops working, only around. Here is an example How to do to ignore block i.e. so that the paint continues to follow the mouse behind the block continuously?
Answer the question
In order to leave comments, you need to log in
.text-take {
...
pointer-events: none;
}
If the c option pointer-events: none;
is not suitable, then you can move the event handlers from the canvas to the body.
- canvas.addEventListener("mousemove", e => {
+ document.body.addEventListener("mousemove", e => {
// аналогично для других событий (touchmove, touchstart)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question