I have table with 5 columns, that inserted in ScrollPane, and i want to that ScrollPane will scroll only to the next element, even if velocity was too high.
Is anyone faced with this issue?
Related
I'm quite new to HTML and hoping to make a prototype of a website where as you scroll further down, the scroll speed increases. Does anyone have any idea how to do this?
You could watch the onscroll event and, depending of the scrollTop and the scroll direction, apply another scrollTop value.
Beware changing scrollTop would trigger the onscroll event again, creating an infinite loop, so you would have to set up a flag like explained here.
My Ionic1 app displays a list of items that can be collapsed/expanded, so the vertical length of the content can increase significantly when an element is expanded (the way I do it is through ng-show directives).
My issue is that when this happens, I cannot scroll down to see the new content. Actually, if I drag my finger from bottom to top, I can see the new content appear in the bottom, but as soon as I release my finger, some elasticity brings back the top of the content.
However, strangely enough, after a few seconds, the scrolling mechanics is updated correctly and I can scroll normally.
It looks like the Ionic framework takes some time to figure out that the content length has changed and needs some update in the scrolling mechanics... I would like to tell him immediately once it is needed. I tried to call $apply from the onClick call back of the Expand buttons, but I get an error saying I am already in a digest cycle.
Any clue to fix this please? Many thanks!
You can avoid $apply approach because every $scope.$apply is rebind in the page. So you can follow the ionic scroll concept.
ionic scroll
Thanks! this helped me fix the problem, by adding a call to $ionicScrollDelegate.resize() whenever some item is collapsed/expanded.
You can check the issue with this fiddle: quickly expand groups 7/8/9 and try to scroll down:
http://jsfiddle.net/shengoo/6b0y3tar/
I have an AIR app with a "settings" area. It is loaded in a scrollpane.
Initially all the settings were in a movieclip scrolled by the pane. But now the settings are too many and I decided to place some buttons to go in the appropriate area.
I can't load the whole content of the scrollpane pressing the button as I want to allow the user to change various settings, in various areas and press "save" just at the end (swapping the pane content I lose the unsaved settings). So I decided to place various MC inside the content and turn them on and off with "visible" property.
The problem is that the scrollpane keeps the height of the higher MC even if it is not visible, so i need to set "scroll just 300 pixel" as I click on a button. Is there a way to do that still keeping the scrollpane component active (and not writing a custom scroller)?
Thanks
Nadia
Yeah everything visible or not counts in dimensions. You can simply resize the bigger clip when it's not visible so it's smaller than the visible clip.
When you navigate to a page with LongListSelector where items have already been loaded (items are already present in itemsSource), the focus, by default is on top most item. You can scroll down to view other items.
In my application, I have a requirement to focus on bottom most item and user can scroll up to view other items.
One solution is to call ScrollTo function on bottom most item. Here, user can see the list being loaded and then change of focus from top to bottom most element. So, the user experience becomes very bad.
Is there any seamless way to do it?
I think ScrollTo is most efficient for a LongListSelector. But if you need to have the experience more seamless you might want to wait/halt your app with a loading screen while the LLS is populated and the focus is changed to the bottom. Async commands or a simple loading status bar could do the trick.
I'm developing an Access 2007 Form. It's main purpose is to display records (usually more than 1 page) with a Close button at the bottom. Some highlights:
It is Continuous
Scroll Bars are enabled.
I'm testing this with 41 records. About a page and a half.
The problem is: If you keep scrolling after the last record, the screen returns to about the middle record. This doesn't seem like any standard GUI behavior I'm familiar with.
How can I get it to just stop scrolling when the last record is at the top of the screen?
Edit
I didn't even think about it when I posted this, but I get the expected behavior with Page Down and arrow keys. It seems to be only with the mouse wheel that I get this behavior.