Add expand/compress image button on image view box (#15068)

* add zoom image button

* enhance zoom algorithm & add translation

* code structure

* code structure

* code structure

* enhance grab performance

* rm useless state

* fix behavior on Firefox & scroll lock & horizontal scroll with mousewheel

* remove scroll lock on MouseWheelEvent

* code structure

* enhance algorithm and code structure

* rm Gemfile.lock from tree

* codeclimate

* fix a stupid mistake
This commit is contained in:
Mashiro
2020-11-03 04:16:38 +08:00
committed by GitHub
parent 4b2ec4a2dc
commit 6a2db10f76
79 changed files with 2029 additions and 23 deletions

View File

@ -3201,6 +3201,19 @@
],
"path": "app/javascript/mastodon/features/ui/components/video_modal.json"
},
{
"descriptors": [
{
"defaultMessage": "Compress image view box",
"id": "lightbox.compress"
},
{
"defaultMessage": "Expand image view box",
"id": "lightbox.expand"
}
],
"path": "app/javascript/mastodon/features/ui/components/zoomable_image.json"
},
{
"descriptors": [
{
@ -3259,4 +3272,4 @@
],
"path": "app/javascript/mastodon/features/video/index.json"
}
]
]