Hi There,
I am using a jQuery event to show the next scene when the user scrolls down however when I get to the last scene and the user scrolls down, it goes back to the previous scene. Is there anyway I can stop this from happening?
Thanks
This is my code:
(embedded within hype’s non editable function)
var position = $(window).scrollTop();
$(window).scroll(function() {
var scroll = $(window).scrollTop();
if(scroll > position) {
// scrolling downwards
hypeDocument.showNextScene(hypeDocument.kSceneTransitionPushBottomToTop, 1.1)
} else {
hypeDocument.showPreviousScene(hypeDocument.kSceneTransitionPushTopToBottom, 1.1)
}
position = scroll;
});
return false;
I didn’t as ended up custom coding something in HTML…I do have a much better working knowledge of JS now however. Have you tried preventing downward scroll on the last scene?