If the next tip is higher on the page than current tip a negative tipOffset results in joyride not scrolling to show position of the next tip. This commit fixes that behaviour by scrolling unless tipOffset is 0 which I assume is intended behaviour
window_half = $(window).height() / 2;
tipOffset = Math.ceil(this.settings.$target.offset().top - window_half + this.settings.$next_tip.outerHeight());
- if (tipOffset > 0) {
+ if (tipOffset != 0) {
$('html, body').animate({
scrollTop: tipOffset
}, this.settings.scroll_speed, 'swing');