VID-1678 refactoring touch screen detection