What is the thinking/philosophy behind having tunneling before Bubbling and not viceversa .
What is the thinking/philosophy behind having tunneling before Bubbling and not viceversa .
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This gives the container, for example, the power to see an event before its children. This is useful in many cases, as e.g. disabling children, hover animations, drag’n’drop, selecting a parent container before continuing checking/clicking the child widget etc.
In other words, IMO it’s easier to create a new container for a custom UI behavior and preview the events (tunneling) that go to stock widgets, than to create custom widgets and using a stock container (bubbling).