Commit graph

12 commits

Author SHA1 Message Date
Reto Brunner 6241eed8f4 client/ImageViewer: fix types and guard against undefined 2024-04-21 15:11:52 +02:00
Reto Brunner 9388960497 linkPreview: Pass channel prop
Else the update logic doesn't work and we don't show
the next / prev buttons
2023-05-15 09:38:09 +02:00
Max Leiter dd05ee3a65
TypeScript and Vue 3 (#4559)
Co-authored-by: Eric Nemchik <eric@nemchik.com>
Co-authored-by: Pavel Djundik <xPaw@users.noreply.github.com>
2022-06-18 17:25:21 -07:00
Pavel Djundik f0253075d8 Create an event bus 2020-04-24 14:09:09 +03:00
Pavel Djundik 64aa510abf Bind events in image viewer only once 2020-03-10 15:36:58 +02:00
Richard Lewis ef473b0f53 Implement navigation in image viewer. 2020-03-09 18:54:21 +02:00
Pavel Djundik 2451f222e8 Bind esc key handler once
Fixes #3690
2020-01-24 15:50:01 +02:00
Pavel Djundik dbfa5c5746 Restrict image viewer bounds while moving 2019-12-24 18:36:12 +02:00
Pavel Djundik 935b193a64 Round down image transform in image viewer to fix blurry images 2019-12-15 18:13:52 +02:00
Pavel Djundik 9147772cb2 Use mousetrap for escape binds 2019-11-25 20:13:12 +02:00
Pavel Djundik 5c4b402341 Fancy image interactions in the image viewer
Desktop:
- Mousewheel to zoom in/out (hold ctrl to move up/down)
- If zoomed, drag around with mouse to move

Mobile:
- Move around with one finger
- Change zoom with two fingers
2019-11-25 20:12:47 +02:00
Pavel Djundik 70a795dced Start porting image viewer to Vue 2019-11-25 20:12:33 +02:00