prevent default if off-canvas panels are shown