Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
891
Issues
891
List
Boards
Labels
Service Desk
Milestones
Merge Requests
49
Merge Requests
49
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
0f33f752
Commit
0f33f752
authored
3 hours ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(chore): reduce 100ms to 30ms for scroll subscription debounce
parent
a3b91894
master
epic/permissions-open-channels
feat/closed-channels-602
No related merge requests found
Pipeline
#79390577
waiting for delayed job with stages
in 51 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
global-scroll.service.ts
src/app/services/ux/global-scroll.service.ts
+1
-1
No files found.
src/app/services/ux/global-scroll.service.ts
View file @
0f33f752
...
...
@@ -73,7 +73,7 @@ export class GlobalScrollService {
const
viewEmitter
:
EventEmitter
<
any
>
=
new
EventEmitter
<
any
>
();
if
(
!
subscription
.
viewListener
)
{
subscription
.
viewListener
=
subscription
.
scrollEvent
.
pipe
(
debounceTime
(
100
))
// wait 10
0ms before triggering
.
pipe
(
debounceTime
(
30
))
// wait 3
0ms before triggering
.
subscribe
(
e
=>
{
viewEmitter
.
next
(
e
);
});
...
...
This diff is collapsed.
Click to expand it.
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