ui: fix scrollLock

This commit is contained in:
undefined committed 2026-02-19 20:37:27 +08:00
1 parent f09b422327
commit 0c43afe704
2 files changed
+2 -3

No files matched your search

@@ -1,4 +1,3 @@
import $ from 'jquery';
import _ from 'lodash';
import React from 'react';
import { connect } from 'react-redux';
@@ -29,7 +28,7 @@ export default connect(mapStateToProps, mapDispatchToProps)(class MessagePadDial
'desc',
);
return (
<ol className="messagepad__list" ref={(ref) => $(ref).scrollLock({ strict: true })}>
<ol className="messagepad__list" style={{ overscrollBehavior: 'contain' }}>
{_.map(orderedDialogues, (dialogue) => (
<ListItem
key={dialogue._id}