We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
_scrollHandler() is not work. How I get scroll offset?
<link rel="import" href="../../../bower_components/iron-scroll-target-behavior/iron-scroll-target-behavior.html"> class ContainerView extends Polymer.Element { static get is() { return 'container-view'; } static get properties() { return { }; } static get behaviors() { return [Polymer.IronScrollTargetBehavior]; } _scrollHandler() { console.log(this._scrollTop()); // <= not work } }
The text was updated successfully, but these errors were encountered:
Importing this behavior is not enough. You have to include it into your class declaration.
Change this line
class ContainerView extends Polymer.Element {
into
class ContainerView extends Polymer.mixinBehaviors([ Polymer.IronScrollTargetBehavior ], Polymer.Element) {
Also, this line this._scrollTop() should be changed into this._scrollTop. Since _scrollTop property is a getter, not a regular method, you can't invoke it. Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get
this._scrollTop()
this._scrollTop
_scrollTop
Sorry, something went wrong.
No branches or pull requests
_scrollHandler() is not work.
How I get scroll offset?
The text was updated successfully, but these errors were encountered: