Handel distances for different pixel densities

Part of fix for android swipe gestures
Merge pull request #118 from TNT-RoX/patch-1

Handel distances for different pixel densities