Touchscreen Edge Detection

What ever the value of p.x, the expression will always be true.