xfreerdp-client: fixed pan gesture

This commit is contained in:
C-o-r-E 2013-06-14 18:02:45 -04:00
parent ac544a0718
commit 0c46350ccd
1 changed files with 5 additions and 0 deletions

View File

@ -192,6 +192,11 @@ void xf_input_detect_pan(xfInfo* xfi)
double dist_x;
double dist_y;
if (active_contacts != 2)
{
return;
}
dx[0] = contacts[0].pos_x - contacts[0].last_x;
dx[1] = contacts[1].pos_x - contacts[1].last_x;