blackberry / bbUI.js

BlackBerry UI look and feel JavaScript toolkit for WebWorks
Apache License 2.0
312 stars 192 forks source link

bbUIscrollWrapper scrollTop randomly going to 0 #1011

Closed KarimP closed 10 years ago

KarimP commented 10 years ago

I'm implementing a pull down to refresh functionality for an app with the bbui image list element, using the current screen's "bbUIscrollWrapper" element to determine the scroll top. I've noticed however, that when pulling all the way down, the scrolltop property randomly goes to zero.

I'm testing on a blackberry Q10 and can confirm that this issue is not a result of the device or the pull to refresh implementation since I'm using the implementation in the pull to refresh sample app (https://github.com/blackberry/BB10-WebWorks-Samples/tree/master/PullDownToRefresh) and it works fine.

I'm using bbui 0.9.6.

KarimP commented 10 years ago

It seems that for my app the scroll top goes to 0 after scrolling up to (or past) -124px. If I remove the scrolling hack that bbui does on the scroll wrapper's scroll event, this occurs less often than if the scroll hack is enabled, but it still occurs.