Tusooa Zhu
db71bbf358
Scale swipe threshold with viewport width
2021-08-02 22:29:48 -04:00
Tusooa Zhu
9d4dd64276
Reset position on swipe end even if we cannot navigate
2021-08-02 22:29:48 -04:00
Tusooa Zhu
e2f3929872
Make lint happy
2021-08-02 22:29:47 -04:00
Tusooa Zhu
4552c28e06
Prevent the click event from firing on content below modal
2021-08-02 22:29:47 -04:00
Tusooa Zhu
cd9384adae
Clean up
2021-08-02 22:29:47 -04:00
Tusooa Zhu
7469849c39
Add swipe-click handler to media modal
...
Now swiping will correctly change the current media, and with a good
preview. Clicking without swiping closes the overlay.
2021-08-02 22:29:47 -04:00
Tusooa Zhu
0a63208da7
Use pinch-zoom-element for pinch zoom functionality
2021-08-02 22:29:46 -04:00
Tusooa Zhu
0421c06d47
Add pan threshold
2021-08-02 22:29:46 -04:00
Tusooa Zhu
7d767f840b
Handle pinch action
2021-08-02 22:29:46 -04:00
Tusooa Zhu
aa70c31950
Preview swipe action
2021-08-02 22:29:46 -04:00
Tusooa Zhu
61509d1b1e
Make media modal be aware of multi-touch actions
...
Originally the media viewer would think every touch is a swipe (one-finger
touch event), so we would encounter the case where a two-finger scale event
would incorrectly change the current media. This is now fixed.
2021-08-02 22:28:16 -04:00
Henry Jameson
b19c2eb0fb
More stuff. Buttons in user card's corner now have MUCH bigger hitboxes
2020-10-20 22:13:19 +03:00
lain
cb99dc2b27
MediaModal: Close on browser navigation events.
2020-06-04 16:30:28 +02:00
Wyatt Benno
f66026bf20
Lightbox/modal multi image improvements - #381
2019-11-08 06:16:26 +00:00
taehoon
348d6664eb
refactor all kind of modals using the modal component
2019-10-18 07:05:01 -04:00
taehoon
750c308909
Support lightbox gallery navigation via arrow buttons and keyboard
2019-02-10 13:23:01 -05:00
shpuld
3978aaef84
Redo everything in the MR
2019-01-26 17:45:03 +02:00
shpuld
485a061287
Polish for videos, smaller sizes, remove gif-looping options
2019-01-20 12:46:11 +02:00
shpuld
e1c3691a72
Add escape button support
2019-01-16 17:27:23 +02:00
shpuld
17735943d5
Add media viewer module and media module component, modify attachment behavior
2019-01-14 19:23:13 +02:00