Software Archive
Read-only legacy content
17060 Discussions

Scrolling list issue, seems touch event called before scrollend

Simone_G_
Beginner
932 Views

Hi,
in my appframework.ui.min.js app (/*! intel-appframework - v2.2.0 - 2015-04-21 */), 
I have a dynamically created list with detail view.

I've added this 2 event listener:

var scrollerList = $("#pageNotizie").scroller();          
$.bind(scrollerList, "scrollstart", function () {
    console.log( "start" );
 });
$.bind(scrollerList, "scrollend", function () {
    console.log( "end" );
 });

If i launch scroll event with my finger the scrollstart event fire, and waiting the scroll animation end, scrollend event fired.

Problems begins when i touck one list item during scroll animation...the detail list view will appear before the scrollend event (in fact, scrollend event will not be fired) and the detail view showned are relative to the list item from where the scroll begins.

Did anyone can help?
In case of a scrolling animation, I need to stop animation on touch, and not showing detail view.

 

thanks

0 Kudos
3 Replies
Pamela_H_Intel
Moderator
932 Views

If you allow the scrolling to finish before selecting an item, does it go to the correct detail view?

0 Kudos
Simone_G_
Beginner
932 Views

Hi Pamela,
if I let the scroll animation end the app show the right detail view. If you need i can send you the project in private message, so you can analize the issue.

Thanks, regards

0 Kudos
Pamela_H_Intel
Moderator
932 Views

Simone,

Yes, please zip your code and send it to me.

Pamela

0 Kudos
Reply