if (currentX > previousX) {
// Right
} else {
// Left
}
previousX = currentX;
in your listener.
Hope this helps.
0
Tedil
On
In the event callback: store the mouse-(x-)position, in the next callback calculate the difference to the previous position (and store the position again); depending on the sign(um) you can determine whether it was a left or right drag.
Use
in your listener.
Hope this helps.