During initialization phase, V-Gesture will recurse DOM subtree which holds body as root and try to find all elements with gClickable attribute. (there are some exception elements e.g) script, head, meta etc..) Then, calculate their elementBoundaryData and pass it to k-d tree.
Implementation
body
as root and try to find all elements with gClickable attribute. (there are some exception elements e.g) script, head, meta etc..) Then, calculate theirelementBoundaryData
and pass it to k-d tree.getBoundingClientRect
(caused bottleneck)[https://webperf.tips/tip/layout-thrashing/]. To prevent it happen synchronously, used (fastDom)[https://www.npmjs.com/package/fastdom] to make execution async.Notes
-
Etc
Checklist before merge