The portion of AutoScrollEvent#originallyRelativeTo that needs to be in view. For example, if a 5x10 rectangle at the top-left of the widget needs to be selected, with a horizontal and vertical offset of 2, then the bounds would be [2, 2, 7, 12].
Note that this is initially relative to originallyRelativeTo when the event is created, but the bounds must be relative to the capturer instead after the event is first captured.
Can be changed by event handlers; typically it's changed to a scrollable container after the container is scrolled so that there are no issues with nested scrollable containers.
Readonly
focusThe focus type of this event. Can be null.
If null, this event cannot be focused, since events are focused by their FocusType as a group.
Readonly
needsCan this event be dispatched without a target?
Readonly
originallyThe widget that the auto-scroll AutoScrollEvent#bounds will be relative to.
Readonly
propagationWhich event propagation model is this event type using?
Readonly
reversedIs this event dispatched in reverse-order?
Readonly
targetThe target of this event. Since this is an untargetable event, this will always be null.
Readonly
typeThe type of this event instance. Compare this against the static
WidgetEvent."type" in the class or a known string value.
Comparing this value and doing an instanceof
check must be equivalent.
Readonly
userIs this event capturable by user event handlers?
Note that if the event does not propagate, capturing the event still has an effect; events are handled in the order for which the handlers were added, meaning that if a handler captures the event, the other handlers won't be called.
Static
Internal
__lw_Internal flag. Marks a class as having warned the user that the event is untergetable in the case that the event is cloned with a target set.
Static
Readonly
typeThe type of this event class. Each event type should be unique, and have a unique class.
Due to Typescript limitations, no compile error is thrown when this static field is not set at a sub-class. Despite this, the type must be set to a unique string value.
Create a new TricklingEvent with the same properties as this, except with a new given target.
Check if the type of this event instance matches the type of a given event class, asserting that the instance is of the class' type.
Protected
warn
An auto-scroll UntargetableTricklingEvent. Dispatched when a widget (or part of a widget) wants to be visible to the user, such as the current caret position when typing a character.
This event is not static. As the event propagates in the UI tree, it will be updated so that the wanted bounds are up-to-date.
Note that this event is handled via Widget#dispatchEvent in a special case; widgets will auto-capture the event if they are AutoScrollEvent#originallyRelativeTo. The event must be re-captured by scrollable containers if a child of those containers captured the event, and AutoScrollEvent#bounds must be updated accordingly. See ScrollableViewportWidget#handleEvent for an example of this.