Posts: 3,956
Joined: Dec 2008
Reputation:
62
Guys,
I'm using a Panel container for Icons view and I was wondering if there's a way to make it scroll by one page instead of by one row? I just want to make it easier on the eyes, nothing special.
Much like what you get when using scrollbar.
Posts: 672
Joined: Aug 2010
Reputation:
13
pieh
Retired Team-Kodi Member
Posts: 672
Seems logical for me, let's wait for more response about it before making any changes.
Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first
My previous forum/trac nickname: grajen3
Posts: 17,390
Joined: Aug 2007
Reputation:
583
Hitcher
Team-Kodi Member
Posts: 17,390
Surely that would make it more work to get to to the next item?
Posts: 3,660
Joined: Feb 2008
Reputation:
93
Jeroen
Team-Kodi Member
Posts: 3,660
2011-06-22, 16:50
(This post was last modified: 2011-06-22, 16:53 by Jeroen.)
Maybe panels could be made to work somewhat similar to how <movement> works in fixed lists?
You could specify the amount of items to scroll horizontally and/or vertically before the panel moves to the next n of colums or rows.
So, In Hitcher's screenshot when I'm on "Cellular" I start scrolling to the right and once I reach "Cranck" for example, the container moves up a couple of columns while keeping the selection on "Crank".
On a related note, what I would really love to see is some inertia to scrolling. So that scrolling starts slowly and as I keep the button pressed scrolling speed will increase. This would be nice for people with really large collections I think.
Posts: 3,379
Joined: Feb 2009
Reputation:
15
mcborzu
Skilled Skinner
Posts: 3,379
I've always wanted this, I've even ask the question before...
There are many times, mostly in wall views, where I would rather have the container load the next say 20, or however many I have visible in the container, items rather than just one row of 4.
Check out Night - A Skin For XBMC
Posts: 26,215
Joined: Oct 2003
Reputation:
187
The work involved might not be too bad. You'd check in MoveLeft/Right (also handles up/down depending on orientation) whether you were at the last item, and if so would scroll a whole page instead of just one item (i.e. you'd (de/in)crement m_offset by m_itemsPerPage and (in/de)crement m_cursor by a similar amount - 1 (depending on container)). You'd have to take account of the last page size though.
Note that "inertial scrolling" is already implemented at least in part - we know if you've held down a key and speed up scrolling automatically based on that. The problem is that not all the input classes support updating the length of time of a hold (keyboard does I think?) It's the same mechanism that is used to not loop the list when you hold down DOWN.
Cheers,
Jonathan
Posts: 544
Joined: Nov 2009
Reputation:
0
Actually, the feature OP propose would be nice for skins created specifically for touch devices.