Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom container listening scroll events #35

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Custom container listening scroll events #35

wants to merge 3 commits into from

Conversation

jungleBadger
Copy link

Description

Vue-parallax only attaches events to the window element itself which works fine for some cases, but if the user needs a custom container overflowing instead of the default window the translate movement does not get applied to the image container.

This feature allows a new prop to be passed to the component, customWrapperReference which is a string reference to an HTML element container (id, class). The scroll event is applied/destroyed to this container instead of the window.

Fix or Feature?

Feature

Environment

  • OS: OS X Mojave
  • NPM Version: 5.6.0

@apertureless apertureless self-requested a review October 9, 2018 13:22
Copy link
Owner

@apertureless apertureless left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please reset the changes to the package.json !
For one, there is no need to add yarn as a dependency.
And never ever change the version of the package. This will be automatically made based on the commits.

Furthermore this is a feature PR so the minor version would change not the patch version, according to semantic versioning.

Otherwise, thanks for the PR! And good work! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants