Found out that with PointerCaptureOutEvent neither StopPropagation nor StopImmediatePropagation works.
I have uxml structure like:
parent
----child
Both have events (parent has ClickEvent and child has PointerCaptureOutEvent). If child is triggered I need the parent event to be ignored. It works fine with regular ClickEvent but not with PointerCaptureOutEvent. What should I do or it’s really a bug?
UPD: this doesn’t work with 'PointerUpEvent ’ either
Hello! Are you certain the child is triggered before the parent? I’m assuming that’s the case, because you also tried with ClickEvent… Feel free to submit a bug so we can investigate more thoroughly.
Thanks!
Basically, I only need the ClickEvent, but here’s the problem: I have a slider, and when I click on it, I change its value and print it, let’s say, to the console. The problem is that if you click, move the mouse outside the slider’s bounds (say, to the right), and release — visually, the slider will be filled to 100%, but the event will not be triggered, so I’m not notified of the value change
upd:
I understand this is not the topic of this post, but this is the original problem.