scylla / touchegg

Automatically exported from code.google.com/p/touchegg
0 stars 0 forks source link

Something wrong in Joojoo. Could be the kernel as it is 3.12.0 -rc 7, but I'm not sure. #218

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am not sure if anyone else has the same problem, but I make these changes 
anyway.

I am using Archlinux x86 on my Joojoo tablet, using standard evdev driver for 
my eGalax Touch Screen (0eef:720c D-WAV Scientific Co., Ltd)
multi touch works, confirmed by the eGalax touch screen driver's test app and 
the Kivy touchtrace.
By the way, I have now uninstalled eGalax's driver which has proven to be 
useless. Even so, multi touch still works.

THE PROBLEM

At first trying the pinch zoom using touchegg, it doesn't work at all. After 
looking at the conf, it says it needs 3 fingers, but Joojoo only support 2 
fingers max.
I then change it to 2, and it works... partially. The resize function behaves 
strangely, even though I (hopefully) using the latest version (it says 1.1.1
from Archlinux 's AUR, but the suspected files are the same.

2 Problems.
I'm not sure if it's global or specific to my Joojoo.

in GestureFactory.cpp

line 76 and 80 (regarding GEIS_GESTURE_ATTRIBUTE_RADIUS_DELTA) should be 
compared < or > to 1, as the debug shows that it can't even get 0. Without this 
hack, resizing
only works to enlarge it, while the opposite doesn't do anything (pinch always 
recognize as "out" motion)

in ResizeWindow.cpp

A bit hacking does the trick.

Apparently, GEIS_GESTURE_ATTRIBUTE_BOUNDINGBOX_X1 always return 0, while the 
others are fine. Therefore, I used another way to re-produce the variable in 
question, by:
GEIS_GESTURE_ATTRIBUTE_BOUNDINGBOX_X1 =  GEIS_GESTURE_ATTRIBUTE_FOCUS_X - 
GEIS_GESTURE_ATTRIBUTE_BOUNDINGBOX_X2

(the exact code in the archive)

Original issue reported on code.google.com by ze.brocc...@gmail.com on 5 Nov 2013 at 1:49

Attachments: