prevent scroll events when in horizontal mode