[cwd] correction for touch devices ( fix #266 )