From: terencehill Date: Fri, 31 Jul 2015 17:29:27 +0000 (+0200) Subject: Special handling of the scrolling with mouse wheel isn't needed anymore in the screen... X-Git-Tag: xonotic-v0.8.1~11^2~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0d959b12c2e8729c5cbcb591c77623b9759036a7;p=xonotic%2Fxonotic-data.pk3dir.git Special handling of the scrolling with mouse wheel isn't needed anymore in the screenshotlist --- diff --git a/qcsrc/menu/xonotic/screenshotlist.qc b/qcsrc/menu/xonotic/screenshotlist.qc index 0b3d473e9..99780ed83 100644 --- a/qcsrc/menu/xonotic/screenshotlist.qc +++ b/qcsrc/menu/xonotic/screenshotlist.qc @@ -155,9 +155,8 @@ void XonoticScreenshotList_setSelected(entity me, float i) SUPER(XonoticScreenshotList).setSelected(me, i); if (me.pressed && me.selectedItem != selectedItem_save) { - // while dragging the scrollbar (or an item) - // for a smooth mouse movement do not load immediately the new selected images - me.newScreenshotTime = time + 0.22; // dragging an item we need a delay > 0.2 (from listbox: me.dragScrollTimer = time + 0.2;) + // avoid immediate image loading on quick repeated selection changes + me.newScreenshotTime = time + 0.22; } else if (time > me.newScreenshotTime) { @@ -295,8 +294,6 @@ float XonoticScreenshotList_keyDown(entity me, float scan, float ascii, float sh me.startScreenshot(me); return 1; } - if(scan == K_MWHEELUP || scan == K_MWHEELDOWN) - me.newScreenshotTime = time + 0.2; return SUPER(XonoticScreenshotList).keyDown(me, scan, ascii, shift); } #endif