* skin_parser.cpp : add comment so people know where to look to fix the
Playlist slider breakage.
int direction = ((EvtScroll&)rEvent).getDirection();
double percentage = m_rList.getPositionVar().get();
+ double step = 2.0 / (double)m_rList.size();
if( direction == EvtScroll::kUp )
{
- percentage += SCROLL_STEP;
+ percentage += step;
}
else
{
- percentage -= SCROLL_STEP;
+ percentage -= step;
}
m_rList.getPositionVar().set( percentage );
}
int direction = ((EvtScroll&)rEvent).getDirection();
double percentage = m_rTree.getPositionVar().get();
+ double step = 2.0 / (double)m_rTree.visibleItems();
if( direction == EvtScroll::kUp )
{
- percentage += SCROLL_STEP;
+ percentage += step;
}
else
{
- percentage -= SCROLL_STEP;
+ percentage -= step;
}
m_rTree.getPositionVar().set( percentage );
}
{
// Slider associated to a list
newValue = "playlist.slider";
- // FIXME
+ // FIXME : this breaks slider usage in old style Playlists
newValue = "playtree.slider";
}
const BuilderData::Slider slider( uniqueId( attr["id"] ),