Re: [w3c/selection-api] Skip posting a task for `selectionchange` event in some cases (Issue #170)

I see. Maybe the logic here is something like below?
```
if (!document.selection_change_event_scheduled) {
  post_selection_change_task();
  document.selection_change_event_scheduled = true;
  ...
}
 
.....
 
selection_change_task_callback(){
  ...
  document.selection_change_event_scheduled = false;
}
``` 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/selection-api/issues/170#issuecomment-1956147326
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/selection-api/issues/170/1956147326@github.com>

Received on Wednesday, 21 February 2024 08:42:19 UTC