Re: [mediacapture-region] What makes CropTarget special to require an asynchronous creation? (#17)

> ... I have a simple proposal.

@eladalon1983 Isn't that a rehash of https://github.com/w3c/mediacapture-region/issues/19, and [already answered](https://github.com/w3c/mediacapture-region/issues/19#issuecomment-1126946787) there (special-casing != KISS)? Let's keep that there.

> ```js
>   setTimeout(async () => {
>     await getCropTargetAndSendItToCapturer(element);
>   }, 0);
> ```

As a side-comment: I don't know how you can credibly argue about performance and add 4 milliseconds of delay for no reason whatsoever. Check out [postMessage is ~100 times more frequent than setTimeout(0)](http://jsfiddle.net/jib1/y1e4rg0d/).

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/mediacapture-region/issues/17#issuecomment-1133643281 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 21 May 2022 14:26:34 UTC