This commit is contained in:
Ilya Kantor 2019-09-04 18:54:50 +03:00
parent 235a2ed197
commit f84bd8d274

View file

@ -109,7 +109,7 @@ parent.onmouseover = function(event) {
};
```
If we don't examine `event.target` inside the handlers, then it may seem that the mouse left `parent` element, and then came back over it. But it's not the case! The mouse never left, it just moved to the child element.
If we don't examine `event.target` inside the handlers, then it may seem that the mouse pointer left `parent` element, and then came back over it. But it's not the case! The mouse never left, it just moved to the child element.
If there's some action upon leaving the element, e.g. animation runs, then such interpretation may bring unwanted side effects.