Don't trigger link clicks from RMB while scrolling the console up/down.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5701 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2020-06-01 01:38:55 +00:00
parent 24267a24ae
commit f6874f99b8

View file

@ -1206,7 +1206,7 @@ void Key_ConsoleRelease(console_t *con, int key, unsigned int unicode)
} }
con->buttonsdown = CB_NONE; con->buttonsdown = CB_NONE;
} }
if ((key == K_MOUSE1 && con->buttonsdown == CB_SCROLL) || (key == K_MOUSE2 && con->buttonsdown == CB_SCROLL_R)) if (key == K_MOUSE1 && con->buttonsdown == CB_SCROLL)// || (key == K_MOUSE2 && con->buttonsdown == CB_SCROLL_R))
{ {
con->buttonsdown = CB_NONE; con->buttonsdown = CB_NONE;
if (fabs(con->mousedown[0] - con->mousecursor[0]) < 5 && fabs(con->mousedown[1] - con->mousecursor[1]) < 5) if (fabs(con->mousedown[0] - con->mousecursor[0]) < 5 && fabs(con->mousedown[1] - con->mousecursor[1]) < 5)