Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to check if event scroll has started #304

Open
play2web opened this issue Jan 25, 2021 · 1 comment
Open

How to check if event scroll has started #304

play2web opened this issue Jan 25, 2021 · 1 comment

Comments

@play2web
Copy link

It only says in documentation
Above functions can be accessed through the directive reference (available as directiveRef in the component).

But there is no example annywhere when you init like this
<perfect-scrollbar [scrollIndicators]="true" >

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a

@GaneshSingaravelu
Copy link

GaneshSingaravelu commented Jul 6, 2023

try this

<perfect-scrollbar  [config]="config" [scrollIndicators]="true" (psScrollY)="onPerfectScrollbarScroll($event)">
</perfect-scrollbar>

scrollEvent: any

  onPerfectScrollbarScroll(event: any) {
    // Handle the PerfectScrollbar scroll event here
    // You can access the event properties like scrollTop, scrollHeight, etc.
    console.log('PerfectScrollbar Scroll Event:', event)
    this.scrollEvent = event
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants