Skip to content

Commit 20ba6cc

Browse files
authored
types: Fix scroll events v10.x (#4949)
* fix: Types for scroll events * feat: Add type for 'onScrollEndCapture' handler
1 parent 3a5b4ba commit 20ba6cc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/dom.d.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -772,10 +772,11 @@ export interface DOMAttributes<Target extends EventTarget>
772772
onLostPointerCapture?: PointerEventHandler<Target> | undefined;
773773
onLostPointerCaptureCapture?: PointerEventHandler<Target> | undefined;
774774

775-
// UI Events
776-
onScroll?: UIEventHandler<Target> | undefined;
777-
onScrollEnd?: UIEventHandler<Target> | undefined;
778-
onScrollCapture?: UIEventHandler<Target> | undefined;
775+
// Scroll Events
776+
onScroll?: GenericEventHandler<Target> | undefined;
777+
onScrollCapture?: GenericEventHandler<Target> | undefined;
778+
onScrollEnd?: GenericEventHandler<Target> | undefined;
779+
onScrollEndCapture?: GenericEventHandler<Target> | undefined;
779780

780781
// Wheel Events
781782
onWheel?: WheelEventHandler<Target> | undefined;

0 commit comments

Comments
 (0)