Open sedhurabe opened 4 years ago
I am using ngx-malihu-scrollbar in my angular project. scrollTo is not working,
`import { MalihuScrollbarService } from 'ngx-malihu-scrollbar'; constructor(private mScrollbarService: MalihuScrollbarService) { }
ngOnChanges() { this.mScrollbarService.scrollTo(#${this.dateIndex}, 10 , { scrollEasing:'easeOut' }); } my HTML code <div malihu-scrollbar [scrollbarOptions]="darksScrollbarOptions">
#${this.dateIndex}
my HTML code
...
In this.dateIndex I will be getting the id
this.dateIndex
id
@sedhurabe, are you still experiencing this behavior with the scrollTo method?
I am also facing same issue. Anyone has any solution to this?
I am using ngx-malihu-scrollbar in my angular project. scrollTo is not working,
`import { MalihuScrollbarService } from 'ngx-malihu-scrollbar'; constructor(private mScrollbarService: MalihuScrollbarService) { }
ngOnChanges() { this.mScrollbarService.scrollTo(
#${this.dateIndex}
, 10 , { scrollEasing:'easeOut' }); }my HTML code
<div malihu-scrollbar [scrollbarOptions]="darksScrollbarOptions">...
In
this.dateIndex
I will be getting theid