mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
2 lines
422 B
JavaScript
2 lines
422 B
JavaScript
import{a as e,c as o}from"./index-a65056c2.js";const t=e({mixins:[o],data(){return{icons:{arrow:this.getIcon("arrow-asc")},showReturnButton:!1}},methods:{scrollToTop(){window.scrollTo({top:0})},handleScroll(){this.showReturnButton=window.scrollY>window.innerHeight*.35}},activated(){window.addEventListener("wheel",this.handleScroll)},deactivated(){window.removeEventListener("wheel",this.handleScroll)}});export{t as r};
|