userVideoQuotaUsedDaily = 0
userVideoQuotaDailyPercentage = 15
+ private lastScrollHash: string
+
constructor (
private viewportScroller: ViewportScroller,
private userService: UserService,
}
ngAfterViewChecked () {
- if (window.location.hash) this.viewportScroller.scrollToAnchor(window.location.hash.replace('#', ''))
+ if (window.location.hash && window.location.hash !== this.lastScrollHash) {
+ this.viewportScroller.scrollToAnchor(window.location.hash.replace('#', ''))
+
+ this.lastScrollHash = window.location.hash
+ }
}
onAvatarChange (formData: FormData) {