Skip to content

Commit 2fe32f4

Browse files
authored
Fix scrolling when body is the scrolling element /cc @nilskaspersson
1 parent b67daea commit 2fe32f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { h, Component } from 'preact';
22

33
const EVENT_OPTS = {
4-
passive: true
4+
passive: true,
5+
capture: true
56
};
67

78
/** Virtual list, renders only visible items.

0 commit comments

Comments
 (0)