Prevent the default action for prev/next buttons.