Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3a80b4b

Browse files
Update on scroll
This update fixes the issue when you have another element in the same window which changes the window height. Updating the parallax on window scroll fixes the issue.
1 parent 3bd2ed5 commit 3a80b4b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/vue-parallax-js.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export default {
9999
const p = new ParallaxJS(os)
100100

101101
window.addEventListener('scroll', () => {
102+
p.update()
102103
p.move(p)
103104
}, { passive: true })
104105
window.addEventListener('resize', () => {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /