}
return SUPER(XonoticScreenshotViewerDialog).keyDown(me, key, ascii, shift);
default:
+ // mousewheel doesn't always reach the first/last screenshot
+ if (key == K_MWHEELUP)
+ key = K_PGUP;
+ else if (key == K_MWHEELDOWN)
+ key = K_PGDN;
if (me.scrList.keyDown(me.scrList, key, ascii, shift))
{
// keyDown has already changed the selected item
{
// while dragging the scrollbar (or an item)
// for a smooth mouse movement do not load immediately the new selected images
- me.newScreenshotTime = time + 0.2;
+ me.newScreenshotTime = time + 0.22; // dragging an item we need a delay > 0.2 (from listbox: me.dragScrollTimer = time + 0.2;)
}
else if (time > me.newScreenshotTime)
{