Skip to content

Commit

Permalink
fix: fixed ios/safari style and perf issues
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Aug 17, 2023
1 parent a7768d8 commit 5d6ff76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions assets/css/_freddy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#freddy {
position: relative;
background-repeat: no-repeat, repeat, no-repeat;
background-attachment: fixed;
// background-attachment: fixed;
background-position: 110% 110%, 50% 50%, 100% 100%;
// background-color: #333366; // purple
background-color: #191d21;
Expand All @@ -18,7 +18,7 @@
display: inline-block;
content: '';
background-repeat: no-repeat;
background-attachment: fixed;
// background-attachment: fixed;
background-position: -50% -50%;
background-image: url('b64---../img/art/rocket.gif---');
background-size: 83.5px 65.5px;
Expand All @@ -40,7 +40,7 @@
display: inline-block;
content: '';
background-repeat: no-repeat;
background-attachment: fixed;
// background-attachment: fixed;
background-image: url('b64---../img/art/freddy.gif---');
background-size: cover;
position: fixed;
Expand Down
4 changes: 2 additions & 2 deletions assets/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ $('a[data-toggle="modal-anchor"]').on('click.modalAnchor', modalAnchor);
// Adjust the hash of the page as you scroll down
// (e.g. if you scroll past a section "Section A" to "Section B"
// then the URL bar will update to #section-b
$(window).on('scroll.changeHashOnScroll', debounce(changeHashOnScroll, 100));
$(window).on('scroll.changeHashOnScroll', debounce(changeHashOnScroll, 250));

// Handle hash change when user clicks on links
$body.on('click.handleHashChange', "a[href^='#']", handleHashChange);
Expand Down Expand Up @@ -426,7 +426,7 @@ function navbarScroll() {

if (el && $nav.length > 0) {
navbarScroll();
$(window).scroll(debounce(navbarScroll, 10));
$(window).scroll(debounce(navbarScroll, 250));
$('#navbar-header')
.on('show.bs.collapse', navbarScroll)
.on('hide.bs.collapse', navbarScroll);
Expand Down

0 comments on commit 5d6ff76

Please sign in to comment.