Skip to content

Commit

Permalink
MARP-1317 Add back to top button
Browse files Browse the repository at this point in the history
MARP-1317 Add back to top button
  • Loading branch information
Hoang Vu Huy committed Nov 11, 2024
1 parent 48ff426 commit 36908bc
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CommonModule, DOCUMENT } from '@angular/common';
import { Component, HostListener, Inject } from '@angular/core';
import { CommonModule } from '@angular/common';
import { Component, HostListener } from '@angular/core';
import { TranslateModule } from '@ngx-translate/core';

@Component({
Expand All @@ -13,9 +13,9 @@ import { TranslateModule } from '@ngx-translate/core';
styleUrl: './back-to-top.component.scss'
})
export class BackToTopComponent {
backToTopShowThreshold: number = 500;
showScrollButton = false;
backToTopShowThreshold = 500;
scrollBehavior: ScrollBehavior = 'smooth';
showScrollButton: boolean = false;

@HostListener("window:scroll", [])
onWindowScroll() {
Expand Down

0 comments on commit 36908bc

Please sign in to comment.