Get rid of weird scrollbar on mouse down

I noticed that on mouse down, a scrollbar appeared in the viewer (just try out the live demo to see what I mean, reproduced in Firefox 26 and Chromium 31). This patch fixes that issue.