Hi there. I’m currently using javascript to listen for mouse scroll direction and then transition to a new scene. But, is there anyway I can omit certain scenes that can be scrolled to?
if (window.addEventListener) {
window.addEventListener("mousewheel", scrollScene, false);
window.addEventListener("DOMMouseScroll", scrollScene, false);
}
function scrollScene(e){
var upORdown = Math.max(-1, Math.min(1, (e.wheelDelta || -e.detail)));
if(upORdown === 1){
hypeDocument.showPreviousScene(hypeDocument.kSceneTransitionPushTopToBottom, 0.5)
}else{
hypeDocument.showNextScene(hypeDocument.kSceneTransitionPushBottomToTop, 0.5)
}
}