From 25621959d777d6b15cd9ff5c9cc46bfc06814f7c Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sat, 12 Nov 2022 00:51:45 -0800 Subject: [PATCH] Add scroller patch --- CHANGELOG.md | 1 + Makefile | 3 ++- patches/{scroller.patch => scroller-perf.patch} | 0 patches/scroller-sticky.patch | 11 +++++++++++ 4 files changed, 14 insertions(+), 1 deletion(-) rename patches/{scroller.patch => scroller-perf.patch} (100%) create mode 100644 patches/scroller-sticky.patch diff --git a/CHANGELOG.md b/CHANGELOG.md index 9dd04e71..707f38d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ This file is manually updated. Please file an issue if something is missing. - Memories now comes with a dedicated transcoding server with HLS support. - Read the documentation [here](https://github.com/pulsejet/memories/wiki/Configuration#video-transcoding) carefully for more details. - **Feature**: Show EXIF metadata in sidebar ([#68](https://github.com/pulsejet/memories/issues/68)) +- **Feature**: Multi-selection with drag (mobile) and shift+click ([#28](https://github.com/pulsejet/memories/issues/28)) - **Feature**: Show duration on video tiles - **Feature**: Allow editing all image formats (HEIC etc.) - Fix stretched images in viewer ([#176](https://github.com/pulsejet/memories/issues/176)) diff --git a/Makefile b/Makefile index 8df363fa..d3d9e4d4 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,8 @@ build-js-production: rm -f js/* && npm run build patch-external: - patch -p1 < patches/scroller.patch + patch -p1 < patches/scroller-perf.patch + patch -p1 < patches/scroller-sticky.patch watch-js: npm run watch diff --git a/patches/scroller.patch b/patches/scroller-perf.patch similarity index 100% rename from patches/scroller.patch rename to patches/scroller-perf.patch diff --git a/patches/scroller-sticky.patch b/patches/scroller-sticky.patch new file mode 100644 index 00000000..79a8a649 --- /dev/null +++ b/patches/scroller-sticky.patch @@ -0,0 +1,11 @@ +--- ./node_modules/vue-virtual-scroller/dist/vue-virtual-scroller.esm.js 2022-11-12 00:44:05.303602165 -0800 ++++ ./node_modules/vue-virtual-scroller/dist/vue-virtual-scroller.esm.js 2022-11-12 00:43:40.030571395 -0800 +@@ -425,7 +425,7 @@ + } + + // Check if index is still in visible range +- if (view.nr.index === -1 || view.nr.index < startIndex || view.nr.index >= endIndex) { ++ if (!view.item.virtualSticky && (view.nr.index === -1 || view.nr.index < startIndex || view.nr.index >= endIndex)) { + this.unuseView(view); + } + }