Honor layers (z-order) in prototype interaction
We need to be able to set prototype interactions based on visible content.
Currently, if a larger object [a] is covered (via z-order) by a smaller object [b], a prototype interaction assigned to [a] will be active when the cursor hovers over [b]. This is not the typical expected behavior with regard to click or mouse over events.
Example:
In the attached image, there is a modal dialog [b].
We would want to assign Tap interactions objects within the dialog.
We would also want to assign a Tap event to the area outside the dialog. In this case, tapping outside the dialog should close the dialog.
However, because the Tap interaction assignment on the region beneath the dialog [a] will fire regardless of the fact that the dialog [b] is an object group placed above the background region [a] in z-order, the desired effect cannot be achieved.
We've even attempted to create an exclusion mask on the region [a] beneath the dialog [b] so that the area covered by the dialog would not be considered viable. This did not work either. The entire exclusion group is considered active for the Tap event.
If, however, the layers (z-order) of objects was taken into consideration, then only the visible portions of the region beneath the dialog would be eligible to activate the associated Tap interaction.