diff options
| author | bobzel <zzzman@gmail.com> | 2024-09-24 17:44:49 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-09-24 17:44:49 -0400 |
| commit | 0da361d49f063d43a0ad87d13665595f9e383e13 (patch) | |
| tree | 15a4bf556a43a77d10c446040107fc69d6fb7ad6 /src/client/views/collections/CollectionCarouselView.tsx | |
| parent | 124c69af0941bd1ed5b03f3275aef37007f06ea7 (diff) | |
fixed screen to local for carousel views (especially when in lightbox)
Diffstat (limited to 'src/client/views/collections/CollectionCarouselView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionCarouselView.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionCarouselView.tsx b/src/client/views/collections/CollectionCarouselView.tsx index 974cd3e36..75886b30d 100644 --- a/src/client/views/collections/CollectionCarouselView.tsx +++ b/src/client/views/collections/CollectionCarouselView.tsx @@ -154,6 +154,8 @@ export class CollectionCarouselView extends CollectionSubView() { ? false : undefined; + childScreenToLocalXf = () => this._props.ScreenToLocalTransform().scale(this._props.NativeDimScaling?.() || 1); + renderDoc = (doc: Doc, showCaptions: boolean, overlayFunc?: (r: DocumentView | null) => void) => { return ( <DocumentView @@ -165,6 +167,7 @@ export class CollectionCarouselView extends CollectionSubView() { fitWidth={undefined} containerViewPath={this.childContainerViewPath} setContentViewBox={undefined} + ScreenToLocalTransform={this.childScreenToLocalXf} onDoubleClickScript={this.onContentDoubleClick} onClickScript={this.onContentClick} isDocumentActive={this._props.childDocumentsActive?.() ? this._props.isDocumentActive : this._props.isContentActive} |
