Skip to content

registerWheelScrollTarget

registerWheelScrollTarget(context, target): EditorDisposable

Opt an external overlay into the editor’s native scroll pipeline. Do not register a native descendant or a shared ancestor: those would make ordinary editor scrolling wait for JS. Disposing the contribution must dispose this registration as well.

Pick<EditorViewContributionContext, "scrollElement">

HTMLElement

EditorDisposable