The javascript project I am working on is trying to incorporate a 'scroll-to-top' button that only renders after scrolling down (y-axis) 20px inside a Vuetify v-dialog component. We also have a v-card and v-treeview (has scrollable list of items) inside of the v-dialog. However, I can't seem to figure out how to actually 'grab' the scroll event within that v-dialog component to trigger anything.
<v-dialog>
<v-card>
<v-treeview> //scrollable list
</v-treeview>
</v-card>
</v-dialog>
Any thoughts??
Here is a very similar Codepen of what I am trying to accomplish. https://codepen.io/carlos-henreis/pen/vzXKBJ
Thanks!