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}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.58.0-beta.19",
"version": "4.58.0-beta.20",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "index.ts",