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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
79 changed files with 2029 additions and 23 deletions

View file

@ -9,8 +9,10 @@
"account.browse_more_on_origin_server": "Browse more on the original profile",
"account.cancel_follow_request": "Avbryt följarförfrågan",
"account.direct": "Skicka ett direktmeddelande till @{name}",
"account.disable_notifications": "Stop notifying me when @{name} posts",
"account.domain_blocked": "Domän dold",
"account.edit_profile": "Redigera profil",
"account.enable_notifications": "Notify me when @{name} posts",
"account.endorse": "Visa på profil",
"account.follow": "Följ",
"account.followers": "Följare",
@ -166,7 +168,9 @@
"empty_column.notifications": "Du har inga meddelanden än. Interagera med andra för att starta konversationen.",
"empty_column.public": "Det finns inget här! Skriv något offentligt, eller följ manuellt användarna från andra instanser för att fylla på det",
"error.unexpected_crash.explanation": "På grund av en bugg i vår kod eller kompatiblitetsproblem i webbläsaren kan den här sidan inte visas korrekt.",
"error.unexpected_crash.explanation_addons": "This page could not be displayed correctly. This error is likely caused by a browser add-on or automatic translation tools.",
"error.unexpected_crash.next_steps": "Prova att ladda om sidan. Om det inte hjälper kan du försöka använda Mastodon med en annan webbläsare eller app.",
"error.unexpected_crash.next_steps_addons": "Try disabling them and refreshing the page. If that does not help, you may still be able to use Mastodon through a different browser or native app.",
"errors.unexpected_crash.copy_stacktrace": "Kopiera stacktrace till urklipp",
"errors.unexpected_crash.report_issue": "Rapportera problem",
"follow_request.authorize": "Godkänn",
@ -250,6 +254,8 @@
"keyboard_shortcuts.unfocus": "för att avfokusera skrivfält/sökfält",
"keyboard_shortcuts.up": "för att flytta uppåt i listan",
"lightbox.close": "Stäng",
"lightbox.compress": "Compress image view box",
"lightbox.expand": "Expand image view box",
"lightbox.next": "Nästa",
"lightbox.previous": "Tidigare",
"lightbox.view_context": "Visa kontext",
@ -260,6 +266,10 @@
"lists.edit.submit": "Ändra titel",
"lists.new.create": "Lägg till lista",
"lists.new.title_placeholder": "Ny listrubrik",
"lists.replies_policy.all_replies": "Any followed user",
"lists.replies_policy.list_replies": "Members of the list",
"lists.replies_policy.no_replies": "No one",
"lists.replies_policy.title": "Show replies to:",
"lists.search": "Sök bland personer du följer",
"lists.subheading": "Dina listor",
"load_pending": "{count, plural, other {# objekt}}",
@ -267,7 +277,9 @@
"media_gallery.toggle_visible": "Växla synlighet",
"missing_indicator.label": "Hittades inte",
"missing_indicator.sublabel": "Den här resursen kunde inte hittas",
"mute_modal.duration": "Duration",
"mute_modal.hide_notifications": "Dölj aviseringar från denna användare?",
"mute_modal.indefinite": "Indefinite",
"navigation_bar.apps": "Mobilappar",
"navigation_bar.blocks": "Blockerade användare",
"navigation_bar.bookmarks": "Bokmärken",
@ -298,6 +310,7 @@
"notification.own_poll": "Din röstning har avslutats",
"notification.poll": "En omröstning du röstat i har avslutats",
"notification.reblog": "{name} knuffade din status",
"notification.status": "{name} just posted",
"notifications.clear": "Rensa aviseringar",
"notifications.clear_confirmation": "Är du säker på att du vill rensa alla dina aviseringar permanent?",
"notifications.column_settings.alert": "Skrivbordsaviseringar",
@ -313,13 +326,22 @@
"notifications.column_settings.reblog": "Knuffar:",
"notifications.column_settings.show": "Visa i kolumnen",
"notifications.column_settings.sound": "Spela upp ljud",
"notifications.column_settings.status": "New toots:",
"notifications.filter.all": "Alla",
"notifications.filter.boosts": "Knuffar",
"notifications.filter.favourites": "Favoriter",
"notifications.filter.follows": "Följer",
"notifications.filter.mentions": "Omnämningar",
"notifications.filter.polls": "Omröstningsresultat",
"notifications.filter.statuses": "Updates from people you follow",
"notifications.group": "{count} aviseringar",
"notifications.mark_as_read": "Mark every notification as read",
"notifications.permission_denied": "Desktop notifications are unavailable due to previously denied browser permissions request",
"notifications.permission_denied_alert": "Desktop notifications can't be enabled, as browser permission has been denied before",
"notifications_permission_banner.enable": "Enable desktop notifications",
"notifications_permission_banner.how_to_control": "To receive notifications when Mastodon isn't open, enable desktop notifications. You can control precisely which types of interactions generate desktop notifications through the {icon} button above once they're enabled.",
"notifications_permission_banner.title": "Never miss a thing",
"picture_in_picture.restore": "Put it back",
"poll.closed": "Stängd",
"poll.refresh": "Ladda om",
"poll.total_people": "{persons, plural, one {# person} other {# personer}}",
@ -446,6 +468,7 @@
"upload_modal.detect_text": "Upptäck bildens text",
"upload_modal.edit_media": "Redigera meida",
"upload_modal.hint": "Klicka eller dra cirkeln på förhandstitten för att välja den fokusering som alltid kommer synas på alla miniatyrer.",
"upload_modal.preparing_ocr": "Preparing OCR…",
"upload_modal.preview_label": "Förhandstitt ({ratio})",
"upload_progress.label": "Laddar upp...",
"video.close": "Stäng video",