Hi,
For the question, pdr@ created a test case:
<div id=scroller style="width: 500px; height: 500px; overflow-y: scroll; border: 1px solid black;">
<div id=touchaction style="width: 200px; height: 200px; background: lightblue; touch-action: none; clip-path: circle(50%);"></div>
<div id=forcescroll style="height: 2000px;"></div>
</div>
I tested the case with local logs and confirmed that we can correctly handle touch actions in and out of the circle by falling back to the main thread. This is good, but we would like to ask the following questions to make sure we fully understand the logic:
1. Does any hit test in any touch action region require the main thread?
2. If the answer to #1 is yes, is it possible to handle some touch actions without needing the main thread, if we know the touch action region is tight?
3. In theory (if ignoring performance impact), can we expand a touch action region freely without affecting correctness? For example, if a touch action region is too complex, can we simplify the region by using the bounding box instead?
Thanks,
Xianzhu