Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e0b38f58
authored
May 16, 2024
by
cherishsince
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【优化】AI Chat 对话自动滚动
parent
482ce623
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
+1
-2
src/views/ai/chat/index.vue
+1
-2
No files found.
src/views/ai/chat/index.vue
View file @
e0b38f58
...
@@ -179,8 +179,7 @@ function handleScroll() {
...
@@ -179,8 +179,7 @@ function handleScroll() {
const
scrollTop
=
scrollContainer
.
scrollTop
const
scrollTop
=
scrollContainer
.
scrollTop
const
scrollHeight
=
scrollContainer
.
scrollHeight
const
scrollHeight
=
scrollContainer
.
scrollHeight
const
offsetHeight
=
scrollContainer
.
offsetHeight
const
offsetHeight
=
scrollContainer
.
offsetHeight
if
((
scrollTop
+
offsetHeight
)
<
(
scrollHeight
-
50
))
{
if
(
scrollTop
+
offsetHeight
<
scrollHeight
)
{
// 用户开始滚动并在最底部之上,取消保持在最底部的效果
// 用户开始滚动并在最底部之上,取消保持在最底部的效果
isScrolling
.
value
=
true
isScrolling
.
value
=
true
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment