Skip to content

Commit 1ecf152

Browse files
authored
Fix will-change value when mouse event ended.
Follow this document. https://developer.mozilla.org/en-US/docs/Web/CSS/will-change `will-change` doesn't have `none` as value so this one should use `unset` to clear value back to default.
1 parent 9e5ac46 commit 1ecf152

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export default class InfiniteScroll extends Component<Props, State> {
230230
if (this._infScroll) {
231231
this._infScroll.style.overflow = 'auto';
232232
this._infScroll.style.transform = 'none';
233-
this._infScroll.style.willChange = 'none';
233+
this._infScroll.style.willChange = 'unset';
234234
}
235235
});
236236
};

0 commit comments

Comments
 (0)