mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
44ebfefb86
There is a common pattern on the web where a click listener is registered on a container element high up in the DOM tree, and based on the target of the click events, it performs the appropriate action. In such cases, our existing fluffing code was not getting activated anywhere inside the container, because the entire container was considered clickable. However, this is not user-friendly because often the actual targets inside the container are small and hard to hit. Also, the fluffing code will often take the container element itself as the target, even if the user actually hit something inside the container. This patch changes this behaviour so when an event hits inside a clickable container, fluffing still occurs, but is restricted to DOM descendants of the container. This allows fluffing to work in the above scenarios, and since the events will bubble up to the container, the listeners on the container are guaranteed to still trigger. |
||
---|---|---|
.. | ||
base | ||
build | ||
doc | ||
forms | ||
generic | ||
inspector | ||
ipc | ||
mathml | ||
media | ||
printing | ||
reftests | ||
style | ||
svg | ||
tables | ||
tools | ||
xul | ||
moz.build |