Dmytro Semenov
Dmytro Semenov
Yes, that's correct. History API was removed as it's not reliable enough (too dependent on existing website routing and SEO/linking issues). And fullscreen feature was removed as it doubles existing...
Yes, you can do something like: ```js pswp.on('close', () => { if (pswp.currSlide.data.element) pswp.currSlide.data.element.scrollIntoView(); }); ```
I'll look into it, this may potentially cause the event to not fire in older mobile browsers. If you have a test case with the Shadow DOM (from #2096) -...
The issue with your solution is that if a pointer is released outside of the document - the pointerup/cancel event is not fired. This can be solved via `setPointerCapture`, however,...
If you want to adjust the speed of the animation from `moveIndexBy` function - you may adjust `velocityX` argument https://github.com/dimsemenov/PhotoSwipe/blob/2d23b36c99411d2dc45bf6610498754bf301b41c/src/js/main-scroll.js#L140 (it's measured in px per ms, and it can be...
I'm not sure what you're trying to modify the source for, but if you want to override the `goTo` method - you may extend the `PhotoSwipe` class. Or implement your...
Here is a basic example, but I don't recommend doing such modifications if you're not a programmer. ```js class CoolerPhotoSwipe extends PhotoSwipe { goTo(index) { // your goTo logic //...
Odd issue, I'll look into it. It's possible to disable the context menu by calling `preventDefault` on `pointerdown`, but that's not ideal.
Fought with this for half of a day. It seems in the new iOS Chrome update neither `pointerup` nor `pointercancel` is called when the context menu disappears. Pointer-capture also doesn't...
I'm not sure that relying on thumbnail dimensions is a good idea, especially as a default behavior. The `domItemData` filter allows you to do this without modifying the lib.