fixed mobile vids behaviour
This commit is contained in:
@@ -861,14 +861,19 @@ jQuery(document).ready(function($) {
|
||||
.each(this.redimVideo.bind(this))
|
||||
.each(this.setVidsEvents.bind(this));
|
||||
|
||||
|
||||
var marge = (_container.w-this.dimvideo.w)/4;
|
||||
this.$vids_container.css({
|
||||
width:this.dimvideo.w+marge,//*1.2,
|
||||
height:this.dimvideo.h,
|
||||
// height:this.dimvideo.h,
|
||||
marginLeft:marge
|
||||
});
|
||||
|
||||
if(!_is_mobile){
|
||||
this.$vids_container.css({
|
||||
height:this.dimvideo.h
|
||||
});
|
||||
|
||||
// add a mask on top of each iframe to avoid bad interaction with vimeo
|
||||
this.$vids.after('<div class="mask"></div>');
|
||||
// create the slider with peppermint
|
||||
|
||||
Reference in New Issue
Block a user