You're right, the abs() is not needed. I first had another variable than deltaYabs/deltaXabs which was not guaranteed to be positive but then noticed my mistake and forgot to remove the abs(). Will do that and I'll calculate the value of the tangens and store it directly in the define to save some tangens calculation on every swipe movement.