Last touch for orientation detection JS.