Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 289
Registered: ‎10-17-2008
My Device: Torch 9800
My Carrier: Rogers

jQuery.scrollTop() on Playbook

Hello,

 

Using jquery.scrollTop() I always get a value of 0. I've seen a couple postings indicating that others have seen this as well, but no hints as to how to solve/workaround this.

 

Does anybody have a quick way to get the scroll position on Playbook?

 

Thanks,

 

feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
Highlighted
Developer
Posts: 289
Registered: ‎10-17-2008
My Device: Torch 9800
My Carrier: Rogers

Re: jQuery.scrollTop() on Playbook

bump

feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: jQuery.scrollTop() on Playbook

If its always returning 0, it sounds like that jQuery method may have a bug?

 

Use this to get the current (vertical) scroll position:

 

var position = window.pageYOffset;

 

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.