triceam / app-UI

app-UI is a collection of user interface components that may be helpful to web and mobile developers for creating interactive applications using HTML and JavaScript, especially those targeting mobile devices. app-UI is a continual work in progress - it was born out of the necessity to have rich & native-feeling interfaces in HTML/JS experiences, and it works great with PhoneGap applications (http://www.phonegap.com). app-UI can easily be styled/customized using CSS.
http://triceam.github.com/app-UI/
Other
1.27k stars 239 forks source link

scroll bar included in transistion #22

Open danielbwa opened 12 years ago

danielbwa commented 12 years ago

Hey Andrew,

First of all: thank you for app UI.

In my project i have some pretty long pages so iScroll comes in and adds the scroll bar to the container... Now when i load new content in the container by using window.splitViewNavigator.replaceBodyView( content ); the transition includes the scroll bar from iScroll. Only on Chrome and Safari desktop.. on mobile the bar disappears nicely after scrolling.

Would be nice to have the bar excluded from the transistion, any ideas?

Thanks, Daniel

triceam commented 12 years ago

You're welcome for app-UI! Thanks for giving it a try. For a quick fix, try going into ViewNavigator.js and add the following code at the beginning of the updateView method:

if ( this.scroller != null && this.scroller != undefined ) { this.scroller.destroy(); this.scroller = null; }

I think that will fix it for you, but I haven't tested it yet. I'd love to see what you are building once its complete!

danielbwa commented 12 years ago

Yep, that does the job :)

tanks for the fast reply, i think this is something nice to add in the new version?

for now App-UI is really what i was looking for, splitview and nice transistions and it preforms good until now. Of course i have some questions about it but thats maybe out of the scope of this issue ;)

triceam commented 12 years ago

reopening, so i remember to add it back into the main branch