fix: fixed a logical bug, added mobile devices check, huge performance improvments on touch devices