Should this also have a event.preventDefault() ? This is what I had to put there, to prevent scrolling the browser window as well.