CON-2309 modify autohide script for GlobalNav so it respect scroll Value