Skip to content
Snippets Groups Projects
Commit 11bd2264 authored by Arnold van der Meulen's avatar Arnold van der Meulen
Browse files

Merge branch 'am-fix-smooth-scrolling' into 'master'

Fix broken smooth scrolling

See merge request !105
parents b5c73b7c e64cf2ab
No related branches found
Tags release-staging-48de2c00694e
1 merge request!105Fix broken smooth scrolling
Pipeline #47049 failed
@ScrollToOnMountMixin =
componentDidMount: ->
$('body').animate scrollTop: @positionInPage() - @marginTop(), 700
$('html,body').scrollTop @positionInPage() - @marginTop()
positionInPage: ->
parseFloat @jQueryElement().offset().top
......
html
scroll-behavior: smooth
body
background-color: $application-background-color
margin: 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment