Updates on SectionScroller and home.css;

main
Bruno Carrión 6 months ago
parent abbb1d0554
commit ef9e6375a9
  1. 3
      assets/css/pages/home.scss
  2. 1
      assets/js/utils/SectionScroller.js

@ -15,7 +15,8 @@
background-repeat: no-repeat;
background-size: cover;
background-position: center;
min-height: calc(var(--vh, 1vh) * 100);
/* min-height: calc(var(--vh, 1vh) * 100); */
min-height: 100vh;
.is-mobile & {
padding-top: $mobile-header-height;

@ -128,6 +128,7 @@ var SectionSnapScroller = (function () {
var offset = ev.deltaY;
direction = ev.deltaY < 0 ? -1 : 1;
offset = Math.min(offset * direction, 60) * direction;
var nextSection =
this.sections[

Loading…
Cancel
Save