mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-22 20:11:44 +00:00
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:
parent
24267a24ae
commit
f6874f99b8
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue