This repository has been archived by the owner on Feb 11, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix inserting touch action stylesheet for Shadow DOM Polyfill
- Loading branch information
d4ca275
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just
instead of lines 37-42?
It worked when I tried it on Canary.
d4ca275
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to leave the door open for placing a built PointerEvents in document body.
d4ca275
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good reason. Do you know why 'insertBefore' is necessary?
What if you used the old code (aka document.head.appendChild(el);), but did it asynchronously (on a timeout)?