WICG / is-input-pending

https://wicg.github.io/is-input-pending/
Other
224 stars 18 forks source link

Should this API give UA's flexibility to return false if input is pending? #1

Closed tdresser closed 4 years ago

tdresser commented 5 years ago

At TPAC, @rniwa expressed a desire to have some flexibility in what is returned from this method.

I can imagine going with a name like isPriorityInputPending to provide a bit of wiggle room. Or just isInputPending if we don't need wiggle room.

There are two kinds of wiggle room we could provide:

  1. The ability to return false when input is pending.
  2. The ability to return true when input is not pending.

Ryosuke, would wiggle room of type 1 be enough, or would you also want type 2?

smaug---- commented 5 years ago

I think the API should let UA to return false. So it may need renaming to something better. isPriorityInputPending isn't really any better. What is "priority input". Priority of some event type depends on the application.

n8schloss commented 4 years ago

I think we addressed this in the current version of the spec.