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

fix bugs in update of offset/lock: missing function ref, bad scoping … #5

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

Conversation

hairylime
Copy link

…on watch and mount hooks

Tried to use the update of offset (on a screen resize event) and got a series of errors from the module:

  • missing updateWatcher method on $scrollMonitor
  • in vue, you can't use arrow functions on watchers if you need 'this' to resolve to the component
  • beforeMount nextTick doesn't seem to work (_container never initialized), changed to mounted on ScrollContainer (since that is effectively 'mount started') and mounted/nextTick on ScrollItem ('mount finished')

Brandon Alessi and others added 3 commits December 19, 2018 11:49
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.

1 participant