PendingInputOptions Class

The host hooks of navigator.scheduling.isInputPending() (https://wicg.github.io/is-input-pending/, BrowsingContextOptions.PendingInput).

public sealed class PendingInputOptions

Constructors

NameDescription
PendingInputOptions()

PendingInputOptions()

public PendingInputOptions()

No documentation is available.

Properties

NameDescription
IsInputPendingGets or sets the callback that tells whether input events are waiting to be dispatched to a window (https://wicg.github.io/is-input-pending/#the-isinputpending-method): the tasks of the user interaction task source that the host has not given to the library yet (e.g. a click while a long script runs). The second argument is includeContinuous: when it is false, the continuous events (mousemove, pointermove, pointerrawupdate, touchmove, wheel and drag) are not considered. The callback must return false for the input dispatched to a cross-origin window, and when it is not sure that the input targets the window. The library checks that the document is fully active before calling it. The callback is invoked on the thread of the event loop, while a script runs: it must return quickly. The default is null: no input is pending. The first argument is the context of the window (see CallbackContext): its CallbackContext.Window is never null.

IsInputPending

InputPending.cs

Gets or sets the callback that tells whether input events are waiting to be dispatched to a window (https://wicg.github.io/is-input-pending/#the-isinputpending-method): the tasks of the user interaction task source that the host has not given to the library yet (e.g. a click while a long script runs). The second argument is includeContinuous: when it is false, the continuous events (mousemove, pointermove, pointerrawupdate, touchmove, wheel and drag) are not considered. The callback must return false for the input dispatched to a cross-origin window, and when it is not sure that the input targets the window. The library checks that the document is fully active before calling it. The callback is invoked on the thread of the event loop, while a script runs: it must return quickly. The default is null: no input is pending. The first argument is the context of the window (see CallbackContext): its CallbackContext.Window is never null.

public Func<CallbackContext, bool, bool>? IsInputPending { get; init; }