fancybox icon indicating copy to clipboard operation
fancybox copied to clipboard

3 Beta 1: Slideshow by click dont start

Open derSteffen opened this issue 11 years ago • 12 comments

Hello,

I use the Beta-Version with the extension BUTTONS for 2.0 und THUMPS for 3.0 ... everything is fine! But I can't start the slideshow! If I press the spacebar, the Slideshow wil be start, also the autoplay is going, but not the manual start (th click)

There is no JS-Error! It should be, that the function not will run!

I use the the last file buttons-js from version: 1.0.5 (Mon, 15 Oct 2012)!

Experiment: If I change play : this.list.find('.btnPlay').click( F.play ), in play : this.list.find('.btnPlay').click( F.toggle), the Play-Button resize the image!

But play : this.list.find('.btnPlay').click( F.play ) not work if I click the Play-Button in the Buttons-Helper! Also the icon dont switch!

There is no play: function ( action ) is the fancy-js-code (v3) !!!!

Tested: Firefox, Chrome, IE11

No other JS-FIles in the webside!

Included: Jquery v2.1.0 + jQuery Migrate v1.2.1

Is there an solution?

Thank you very much!

Greetings Steffen

derSteffen avatar Jan 12 '15 18:01 derSteffen

Any idea?

Becaus the spacebar is going, the autostart is going ... only the click behavior dont work! So the slideshow works but it want to start by clicking the btnPlay-Button! Please help me :-)

Jānis Skarnelis can you help me?

Thank you very much!

derSteffen avatar Jan 13 '15 13:01 derSteffen

Nothing idea?

Which name has the function to toogle (start / stop) the slideshow by the Beta-Version?

derSteffen avatar Jan 16 '15 05:01 derSteffen

Hi, I'm sorry, I'm currently devoting all my time for final v3. It will look and work completely different from all previous versions (including the beta).

fancyapps avatar Jan 16 '15 07:01 fancyapps

Thank you vermuch for your feedback! The Beta works well (for me) but only the manual slideshow CLICK - START/STOP dont work! Greetings

derSteffen avatar Jan 19 '15 08:01 derSteffen

Well, if you want to start/stop the slideshow manually, you can like this:

$.fancybox.slideshow.start();
$.fancybox.slideshow.stop();

fancyapps avatar Jan 19 '15 08:01 fancyapps

//fancybox slideshow (play/pause button not working in Beta3) $('body').on('click', 'a.btnPlay', function(){ if($(this).hasClass('btnPlayOn')) { $.fancybox.slideshow.stop(); } else { $.fancybox.slideshow.start(); } });

matthendrix avatar Oct 07 '15 00:10 matthendrix

:+1:

SalahAdDin avatar Oct 07 '15 13:10 SalahAdDin

Thanks matthendrix ... where did you place this code? In which file and in which part?

Thanks

derSteffen avatar Oct 07 '15 18:10 derSteffen

Put in the web page html, just before the closing body tag.

matthendrix avatar Oct 07 '15 22:10 matthendrix

Great, great, great! Thanks!!!

Do you have also a soltion for the expand-Icon? Because, in the buttons you can expand an Image but the css-class for the Expand-Toogle-Icon is disable (the functions can start), but thats wrong ... it is right if the image can't resize ... but there is no different .

Thanks

derSteffen avatar Oct 08 '15 07:10 derSteffen

Hello matthendrix,

in your solution, there is the error, that if you have an autostart-(slideshow) and then you click the pause-button of the slideshow then the slideshow stop - perfect. But if you click an arrow from the image or the buttons, the slideshow starts automatic. This error ist not, if your slideshow dont start automatic.

Do you have an solutin for this?!

Thank you very much!

Greetings

derSteffen avatar Oct 18 '15 13:10 derSteffen

Hi, please, upgrade to v3.

fancyapps avatar Feb 27 '17 20:02 fancyapps