π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Tweak
Manav Rathi5a7f83212bab
diff --git a/web/apps/photos/src/styles/photoswipe.css b/web/apps/photos/src/styles/photoswipe.cssindex d2276b61c9..1b03c87e4f 100644--- a/web/apps/photos/src/styles/photoswipe.css+++ b/web/apps/photos/src/styles/photoswipe.css@@ -221,10 +221,14 @@[Note: Showing menus outside of media-controller]- This is all very hacky. None of the media controller examples currently- show menus work for our specific scenario (the controls detached from the- the media controller itself, and shown at the bottom of the screen). As- such, a lot of undocumented and arbitrary tweaks are needed. This is a+ This is all very hacky. The standalone control example+ (https://media-chrome.mux.dev/examples/vanilla/standalone-controls.html),+ doesn't (as of now) include a menu, so it is possible this is just not+ supported. None of the media controller examples I could find show menus+ work for our specific scenario (the controls detached from the the media+ controller itself, and shown at the bottom of the screen).++ As such, a lot of undocumented and arbitrary tweaks are needed. This is ahouse of cards, and might fall when the media-chrome version is updated;on the other hand, they might also add better support for our scenario, inwhich case this should be possible straightforwardly.diff --git a/web/packages/gallery/components/viewer/photoswipe.ts b/web/packages/gallery/components/viewer/photoswipe.tsindex 37e1fcbff4..aea0ee6834 100644--- a/web/packages/gallery/components/viewer/photoswipe.ts+++ b/web/packages/gallery/components/viewer/photoswipe.ts@@ -470,9 +470,9 @@ export class FileViewerPhotoSwipe {const { fileID, fileType, videoURL, mediaControllerID } =asItemData(e.content.data);- // For the initial slide, "contentAppend" will get called after- // "change", so we need to wire up the controls (or hide them) for- // the initial slide here also (in addition to in "change").+ // For the initial slide, "contentAppend" will get called after the+ // "change" event, so we need to wire up the controls, or hide them,+ // for the initial slide here also (in addition to in "change").if (currSlideData().fileID == fileID) {// For reasons possibily related to the 1 tick waits in the// hls-video implementation (`await Promise.resolve()`), the@@ -483,11 +483,11 @@ export class FileViewerPhotoSwipe {// See also: https://github.com/muxinc/media-chrome/issues/940//// As a workaround, defer the association to the next tick.- //setTimeout(() => updateMediaControls(mediaControllerID), 0);}// Rest of this function deals with live photos.+if (fileType != FileType.livePhoto) return;if (!videoURL) return;