Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
screensmart
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RoQua
screensmart
Commits
11bd2264
Commit
11bd2264
authored
5 years ago
by
Arnold van der Meulen
Browse files
Options
Downloads
Plain Diff
Merge branch 'am-fix-smooth-scrolling' into 'master'
Fix broken smooth scrolling See merge request
!105
parents
b5c73b7c
e64cf2ab
No related branches found
Branches containing commit
Tags
release-staging-48de2c00694e
Tags containing commit
1 merge request
!105
Fix broken smooth scrolling
Pipeline
#47049
failed
5 years ago
Stage: test
Changes
2
Pipelines
66
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/assets/javascripts/mixins/ScrollToOnMountMixin.coffee
+1
-1
1 addition, 1 deletion
app/assets/javascripts/mixins/ScrollToOnMountMixin.coffee
app/assets/stylesheets/_globals.sass
+3
-0
3 additions, 0 deletions
app/assets/stylesheets/_globals.sass
with
4 additions
and
1 deletion
app/assets/javascripts/mixins/ScrollToOnMountMixin.coffee
+
1
−
1
View file @
11bd2264
@
ScrollToOnMountMixin
=
componentDidMount
:
->
$
(
'body'
).
animate
scrollTop
:
@
positionInPage
()
-
@
marginTop
()
,
700
$
(
'
html,
body'
).
scrollTop
@
positionInPage
()
-
@
marginTop
()
positionInPage
:
->
parseFloat
@
jQueryElement
().
offset
().
top
...
...
This diff is collapsed.
Click to expand it.
app/assets/stylesheets/_globals.sass
+
3
−
0
View file @
11bd2264
html
scroll-behavior
:
smooth
body
background-color
:
$application-background-color
margin
:
0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment