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
50
Merge Requests
50
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
Compare Revisions
c7ad718550b1c72ca6d16fc16fa5c2bf5332c884...412bc773d78bb96e4a30bd9e5af8c12dc369af0f
Source
412bc773d78bb96e4a30bd9e5af8c12dc369af0f
Select Git revision
...
Target
c7ad718550b1c72ca6d16fc16fa5c2bf5332c884
Select Git revision
Compare
Commits (3)
(chore): reduce 100ms to 30ms for scroll subscription debounce
· 0f33f752
Mark Harding
authored
1 day ago
0f33f752
(feat): prevent regression
· 075e344d
Olivia Madrid
authored
1 day ago
075e344d
Merge branch 'master' of gitlab.com:minds/front into feat/media-modal-service-1822
· 412bc773
Olivia Madrid
authored
1 day ago
412bc773
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
modal.component.ts
src/app/modules/media/modal/modal.component.ts
+1
-1
global-scroll.service.ts
src/app/services/ux/global-scroll.service.ts
+1
-1
No files found.
src/app/modules/media/modal/modal.component.ts
View file @
412bc773
...
...
@@ -260,7 +260,7 @@ export class MediaModalComponent implements OnInit, OnDestroy {
// After heights are set, check that scaled width isn't too wide or narrow
this
.
maxStageWidth
=
Math
.
max
(
window
.
innerWidth
-
this
.
contentWidth
+
this
.
padding
*
2
,
window
.
innerWidth
-
this
.
contentWidth
-
this
.
padding
*
2
,
this
.
minStageWidth
);
...
...
This diff is collapsed.
Click to expand it.
src/app/services/ux/global-scroll.service.ts
View file @
412bc773
...
...
@@ -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.