diff --git a/photoswipe/photoswipe-tests.ts b/photoswipe/photoswipe-tests.ts index ca136f3a2e..e4006d5c13 100644 --- a/photoswipe/photoswipe-tests.ts +++ b/photoswipe/photoswipe-tests.ts @@ -51,7 +51,8 @@ function test_defaultUI() { return el.tagName === 'A'; }, mainScrollEndFriction: 0.35, - panEndFriction: 0.35 + panEndFriction: 0.35, + modal: true }; var photoSwipe: PhotoSwipe; diff --git a/photoswipe/photoswipe.d.ts b/photoswipe/photoswipe.d.ts index 16ce87a68c..bf1cf701ba 100644 --- a/photoswipe/photoswipe.d.ts +++ b/photoswipe/photoswipe.d.ts @@ -1,4 +1,4 @@ -// Type definitions for PhotoSwipe 4.0.7 +// Type definitions for PhotoSwipe 4.0.8 // Project: http://photoswipe.com/ // Definitions by: Xiaohan Zhang // Definitions: https://github.com/borisyankov/DefinitelyTyped @@ -308,6 +308,13 @@ declare module PhotoSwipe { * } */ isClickableElement?: (el: HTMLElement) => boolean; + + /** + * Controls whether PhotoSwipe should expand to take up the entire viewport. + * If false, the PhotoSwipe element will take the size of the positioned parent of the template. Take a look at the FAQ for more + * information. + */ + modal?: boolean; } interface UIFramework {