From e91065602eeeebef236dae29e67d8e3334ab4029 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Wed, 29 Jan 2020 07:54:03 +0100 Subject: viewer: improved the picture layout. clicking a picture will switch between resized-to-screen and original-size (+fullscreen). drag-n-drop scrolls/moves the picture, just like a touch device. Resolves #19 --- viewer/src/plugins/dragscroll.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 viewer/src/plugins/dragscroll.ts (limited to 'viewer/src/plugins/dragscroll.ts') diff --git a/viewer/src/plugins/dragscroll.ts b/viewer/src/plugins/dragscroll.ts new file mode 100644 index 0000000..f6d88bb --- /dev/null +++ b/viewer/src/plugins/dragscroll.ts @@ -0,0 +1,24 @@ +/* ldgallery - A static generator which turns a collection of tagged +-- pictures into a searchable web gallery. +-- +-- Copyright (C) 2019-2020 Guillaume FOUET +-- +-- This program is free software: you can redistribute it and/or modify +-- it under the terms of the GNU Affero General Public License as +-- published by the Free Software Foundation, either version 3 of the +-- License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU Affero General Public License for more details. +-- +-- You should have received a copy of the GNU Affero General Public License +-- along with this program. If not, see . +*/ + +import Vue from "vue"; +import VueDragscroll from 'vue-dragscroll'; + +Vue.use(VueDragscroll); + -- cgit v1.2.3 From ccecfd9421f4550a71134cd46e1388e486f8c564 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Tue, 28 Apr 2020 03:47:39 +0200 Subject: viewer: global formatting unification --- viewer/src/plugins/dragscroll.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'viewer/src/plugins/dragscroll.ts') diff --git a/viewer/src/plugins/dragscroll.ts b/viewer/src/plugins/dragscroll.ts index f6d88bb..a10b0fd 100644 --- a/viewer/src/plugins/dragscroll.ts +++ b/viewer/src/plugins/dragscroll.ts @@ -18,7 +18,6 @@ */ import Vue from "vue"; -import VueDragscroll from 'vue-dragscroll'; +import VueDragscroll from "vue-dragscroll"; Vue.use(VueDragscroll); - -- cgit v1.2.3