Цитата:
Сообщение от Universe
почему функция перестаёт вызываться, если я включаю useCapture? Без useCapture работает.
|
Цитата:
|
useCapture:Boolean (default = false) — Determines whether the listener works in the capture phase or the target and bubbling phases. If useCapture is set to true, the listener processes the event only during the capture phase and not in the target or bubbling phase. If useCapture is false, the listener processes the event only during the target or bubbling phase.
|
Т.е. если ваш this это элемент display list'а и он выбрасывает событие, то это событие на нём будет в фазе EventPhase.AT_TARGET, которая не ловится через useCapture