Jānis Skarnelis

Results 157 comments of Jānis Skarnelis

Hi, Well, I could tweak code to make it work with 1/0 values, but you know, JavaScript world is moving towards stricter types (https://devblogs.microsoft.com/typescript/a-proposal-for-type-syntax-in-javascript/) and you should start getting used...

Hi, Fancybox v4 supports multiple zoom levels, and drag/zoom boundaries are edges of the original image. So you want these boundaries to be at the edges of the viewport, but,...

Thanks for your feedback. I thought about it and you are right, this will be the default behavior for v5.

Hi, I don't think there is a perfect solution for everyone. Some might prefer to combine everything into one file, another would not. You can always grab the source and...

> Removing panzoom, hash, thumbs, toolbar, etc. to a separate js files. 1) Actually, they are already split into separate files. 2) Panzoom is used used by Carousel and Fancybox...

Fancybox is built on top of Carousel and Carousel is built on top of Panzoom. Also, Fancybox uses Panzoom for touch guestures for images. Therefore all 3 components are available...

Hi, I believe it is bad practice to force users to press some button to view image correctly. You should fix rotation of your images on the server. Anyway, this...

Hi, That is interesting question. Honestly, I have not tested both version side by side. Fancybox prior 4 was jQuery based, v4 is written plain JS, but they all use...

Sure, you could do like this: 1) Unbind default click handler: `Fancybox.unbind('[data-fancybox]');` 2) Bind another selector `Fancybox.bind('[data-new-fancybox]', {});` As alternative would be to create custom click event listener on body...