mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: fix scrollLock
This commit is contained in:
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}
|
||||
|
||||
Reference in new issue
Block a user