*/
.trigger('open.zf.reveal');
- $('body').addClass('is-reveal-open')
- .attr({'aria-hidden': (this.options.overlay || this.options.fullScreen) ? true : false});
+ $('html, body').addClass('is-reveal-open');
+
+ $('body').attr({'aria-hidden': (this.options.overlay || this.options.fullScreen) ? true : false});
setTimeout(function(){
_this._extraHandlers();
}, 0);
'width': ''
});
}
- $('body').removeClass('is-reveal-open').attr({'aria-hidden': false, 'tabindex': ''});
+ $('html, body').removeClass('is-reveal-open')
+ $('body').attr({'aria-hidden': false, 'tabindex': ''});
_this.$element.attr({'aria-hidden': true})
/**
* Fires when the modal is done closing.
body.is-reveal-open {
overflow: hidden;
}
+
+ /* this little snippet causes the intended scroll blocking on iOS Safari,
+ which can still DIAF, because it breaks literally everything else */
+ // html, body.is-reveal-open {
+ // overflow: hidden;
+ // position: relative;
+ // height: 100%;
+ // }
// Overlay
.reveal-overlay {