Better click prevention

Now should work on all browsers, even if elements change their position.