mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01: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 _ from 'lodash';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
@@ -29,7 +28,7 @@ export default connect(mapStateToProps, mapDispatchToProps)(class MessagePadDial
|
|||||||
'desc',
|
'desc',
|
||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
<ol className="messagepad__list" ref={(ref) => $(ref).scrollLock({ strict: true })}>
|
<ol className="messagepad__list" style={{ overscrollBehavior: 'contain' }}>
|
||||||
{_.map(orderedDialogues, (dialogue) => (
|
{_.map(orderedDialogues, (dialogue) => (
|
||||||
<ListItem
|
<ListItem
|
||||||
key={dialogue._id}
|
key={dialogue._id}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.58.0-beta.19",
|
"version": "4.58.0-beta.20",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "index.ts",
|
"main": "index.ts",
|
||||||
|
|||||||
Reference in new issue
Block a user