Open jan-molak opened 2 years ago
Did anyone found any work-around ? I am facing same issue!
Did anyone found any work-around ? I am facing same issue!
As for the fiddle above I prevent whole page scroll by just passing an object with desired behaviour parameters as documentation says.
{ behavior: 'smooth', block: 'center', inline: 'center', }
Hi there,
It looks like when invoking
scrollIntoView
on an element inside the scrollable area the whole page is being scrolled, not just the scrollable area itself.This issue affects test automation frameworks (such as Serenity/JS https://github.com/serenity-js/serenity-js/issues/1104) trying to interact with Perfect Scrollbar.
JSFiddle reproducing the issue: https://jsfiddle.net/L7vfqa9x/
Recording:
https://user-images.githubusercontent.com/1089173/151190274-9e7898cd-e643-47db-8a06-733600e1779a.mp4