-
-
Save ChangJoo-Park/ca7ec7851b22cf8bf0de978210ec28b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Component from '@glimmer/component'; | |
import { tracked } from '@glimmer/tracking'; | |
import { action } from '@ember/object'; | |
export default class ScrollComponent extends Component { | |
@tracked scrollOffset; | |
@action | |
listener(e) { | |
this.scrollOffset = e.clientY; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment