As Mathias mentioned in the comments consider applying this to the root element (document.documentElement) instead of document.body.
Note that this will prevent clicking links for half a second (the timeout used in the code).
A rather geeky/technical weblog, est. 2001, by Bramus
pointer-events: noneAs Mathias mentioned in the comments consider applying this to the root element (document.documentElement) instead of document.body.
Note that this will prevent clicking links for half a second (the timeout used in the code).