intel / appframework

The definitive HTML5 mobile javascript framework
http://app-framework-software.intel.com/
MIT License
2.43k stars 881 forks source link

Scroller doesn't work on WP8 #780

Open leogit81 opened 9 years ago

leogit81 commented 9 years ago

Hi, i'm having a problem with the app's framework scroller on an application developed with cordova, backbone (which depends on jQuery and underscore). The scroller works fine on BB10 and Android. But in WP8 doesn't work. I can't scroll the cellphone display. It is as if frozen. We try disabling js scrolling, like this: $.feat.nativeTouchScroll=true And we also try including the af.desktopBrowsers.js plugin We couldn't deploy the application because of this issue. Can you give us any sugestion or solution?

I'm deploying the app to a Nokia Lumia 925 with Windows Phone 8.1 installed (OS version: 8.10.12393.080)

Thank you very much in advanced!

imaffett commented 9 years ago

Which container system are you using to deploy it with

Are you sure you are including af.desktopBrowsers.js plugin

Can you host a demo somewhere? We need a lot more information before we can even attempt to help

leogit81 commented 9 years ago

What do you mean with container system? I'll post you a simple app that I was using as a concept test. I don't have access to the source code right now.

Thank you.

imaffett commented 9 years ago

How are you deploying your hybrid app? Cordova CLI, Phonegap Build, Intel XDK, etc....

leogit81 commented 9 years ago

We are using both Cordova CLI as PhoneGap Build. With the same results. I've included af.desktopBrowsers.js plugin with a script tag before this lines:

leogit81 commented 9 years ago

Sorry I forgot the lines:

script type="text/javascript" charset="utf-8" src="libraries/appframework.js" script type="text/javascript" charset="utf-8" src="libraries/ui/appframework.ui.js"

imaffett commented 9 years ago

Can you put up a simple demo (html page). And are you using the latest from github?

leogit81 commented 9 years ago

Hello, it worked! I think it was a problem with the order of the scripts. It worked int this order:

script type="text/javascript" charset="utf-8" src="./libraries/appframework.js" script type="text/javascript" charset="utf-8" src="./libraries/ui/appframework.ui.js" script type="text/javascript" charset="utf-8" src="./libraries/plugins/af.desktopBrowsers.js"

I made a deploy to my WP8 device and worked fine. The only thing I have to say is that is a little slow. If I have a long list of items, let's say +100, it's recommended that I use infinite scrolling? Or some way of fetching the records on demand...

I'm using the latest from Github, but the branch 2.1.1. Should I use other version?

Anyway, I share you the link to a github repository where it's the simple demo app, in case you're interested to see it.

Thank you very much!

leogit81 commented 9 years ago

Sorry, this is the link

https://github.com/leogit81/appFrameworkTestApp