return;
unsigned int dest = rackwidth * pos / range - min;
qDebug() << "Move to" << dest;
- menu->getScreen()->moveto(dest);//(bgwidth - ui->image->width()));
+ menu->getScreen()->moveto(dest);
+ //We should make something better to prevent from flooding the screen
QThread::msleep(20);
-/* int delta = pos - viewpos;
- viewpos = pos;
- if (delta < 0)
- menu->getScreen()->translation(LivingScreen::LEFT, -delta * rackwidth / (bgwidth - ui->image->width()));
- else
- menu->getScreen()->translation(LivingScreen::RIGHT, delta * rackwidth / (bgwidth - ui->image->width()));*/
}
}