Scroll Type in Wjimo

Posted by: bhuvaneswari.r on 6 September 2021, 11:31 pm EST

  • Posted 6 September 2021, 11:31 pm EST

    How do we differentiate scroll type(i.e vertical or horizantal) in wjimo..

    i am using ScrollPositionChanged method here there r no attribute to check scroll type. Can u pls help me to find scroll type while scrolling
  • Marked as Answer

    Replied 7 September 2021, 7:06 pm EST

    Hello,

    I'm afraid that ScrollPositionChanged event gets triggered on any change in position of the scroll bars(either horizontal or vertical) its doesn't provide any information on which scroll bar position has changed. If you wish to check which scroll bar position has changed you may add a scroll event to the FlexGrid using the addEventListener method and based on the position you can get the scrolled bar type.

    You may refer to the sample link demonstrating the same:https://stackblitz.com/edit/js-ulif4x?file=index.js

    Let us know if that's works for you.

    Regards
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels