fixed mobile vids behaviour
This commit is contained in:
@@ -856,11 +856,6 @@ jQuery(document).ready(function($) {
|
|||||||
this.dimvideo.h = (this.dimvideo.w * parseInt($first_vid.attr("height")))/parseInt($first_vid.attr("width"));
|
this.dimvideo.h = (this.dimvideo.w * parseInt($first_vid.attr("height")))/parseInt($first_vid.attr("width"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// add a mask on top of each iframe to avoid bad interaction with vimeo
|
|
||||||
if(!_is_mobile)
|
|
||||||
this.$vids.after('<div class="mask"></div>');
|
|
||||||
|
|
||||||
// redim each iframe to fit
|
// redim each iframe to fit
|
||||||
this.$vids
|
this.$vids
|
||||||
.each(this.redimVideo.bind(this))
|
.each(this.redimVideo.bind(this))
|
||||||
@@ -873,12 +868,14 @@ jQuery(document).ready(function($) {
|
|||||||
marginLeft:marge
|
marginLeft:marge
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if(!_is_mobile){
|
||||||
|
// add a mask on top of each iframe to avoid bad interaction with vimeo
|
||||||
// create the slider with peppermint
|
this.$vids.after('<div class="mask"></div>');
|
||||||
this.$slider = $('.field-items', this.$vids_container).Peppermint({
|
// create the slider with peppermint
|
||||||
onSlideChange:this.onSlideChange.bind(this)
|
this.$slider = $('.field-items', this.$vids_container).Peppermint({
|
||||||
});
|
onSlideChange:this.onSlideChange.bind(this)
|
||||||
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
Chapter.prototype.redimVideo = function(i,e){
|
Chapter.prototype.redimVideo = function(i,e){
|
||||||
|
|||||||
Reference in New Issue
Block a user