From 69526b67eb402bd13b09384ab8592f299ca22c9b Mon Sep 17 00:00:00 2001 From: Ihor Hordiichuk Date: Wed, 14 Jun 2023 11:30:11 +0000 Subject: [PATCH 1/3] Translated using Weblate (Ukrainian) Currently translated at 100.0% (144 of 144 strings) Translation: Element Call/element-call Translate-URL: https://translate.element.io/projects/element-call/element-call/uk/ --- public/locales/uk/app.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public/locales/uk/app.json b/public/locales/uk/app.json index 9c5d3d72..2d48045f 100644 --- a/public/locales/uk/app.json +++ b/public/locales/uk/app.json @@ -136,5 +136,11 @@ "Submitting…": "Надсилання…", "Submit": "Надіслати", "If you are experiencing issues or simply would like to provide some feedback, please send us a short description below.": "Якщо у вас виникли проблеми або ви просто хочете залишити відгук, надішліть нам короткий опис нижче.", - "Feedback": "Відгук" + "Feedback": "Відгук", + "<0>Thanks for your feedback!": "<0>Дякуємо за ваш відгук!", + "{{count}} stars|one": "{{count}} зірка", + "{{count}} stars|other": "{{count}} зірок", + "{{displayName}}, your call has ended.": "{{displayName}}, ваш виклик завершено.", + "<0>We'd love to hear your feedback so we can improve your experience.": "<0>Ми будемо раді почути ваші відгуки, щоб поліпшити роботу застосунку..", + "How did it go?": "Вам усе сподобалось?" } From 7cae785351edbf2ab5374bfdee7c8b662de35a6d Mon Sep 17 00:00:00 2001 From: Robin Townsend Date: Wed, 14 Jun 2023 15:34:32 +0000 Subject: [PATCH 2/3] Translated using Weblate (Ukrainian) Currently translated at 100.0% (144 of 144 strings) Translation: Element Call/element-call Translate-URL: https://translate.element.io/projects/element-call/element-call/uk/ --- public/locales/uk/app.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/locales/uk/app.json b/public/locales/uk/app.json index 2d48045f..8ba7e5fa 100644 --- a/public/locales/uk/app.json +++ b/public/locales/uk/app.json @@ -141,6 +141,6 @@ "{{count}} stars|one": "{{count}} зірка", "{{count}} stars|other": "{{count}} зірок", "{{displayName}}, your call has ended.": "{{displayName}}, ваш виклик завершено.", - "<0>We'd love to hear your feedback so we can improve your experience.": "<0>Ми будемо раді почути ваші відгуки, щоб поліпшити роботу застосунку..", + "<0>We'd love to hear your feedback so we can improve your experience.": "<0>Ми будемо раді почути ваші відгуки, щоб поліпшити роботу застосунку.", "How did it go?": "Вам усе сподобалось?" } From f4f454f58eb4e2f0eac81af6f95ff953c2cfb63a Mon Sep 17 00:00:00 2001 From: Robin Townsend Date: Fri, 16 Jun 2023 10:20:24 -0400 Subject: [PATCH 3/3] Improve the performance of dragging tiles in the large grid By only updating the one spring of the tile that's being interacted with --- src/video-grid/NewVideoGrid.tsx | 62 +++++++++++++++------------------ 1 file changed, 29 insertions(+), 33 deletions(-) diff --git a/src/video-grid/NewVideoGrid.tsx b/src/video-grid/NewVideoGrid.tsx index 7e7b916a..e27dea53 100644 --- a/src/video-grid/NewVideoGrid.tsx +++ b/src/video-grid/NewVideoGrid.tsx @@ -257,7 +257,7 @@ export const NewVideoGrid: FC = ({ enter: { opacity: 1, scale: 1, immediate: disableAnimations }, update: ({ item, x, y, width, height }: Tile) => item.id === dragState.current?.tileId - ? {} + ? null : { x, y, @@ -281,38 +281,34 @@ export const NewVideoGrid: FC = ({ const { tileId, tileX, tileY, cursorX, cursorY } = dragState.current!; const tile = tiles.find((t) => t.item.id === tileId)!; - springRef.start((_i, controller) => { - if ((controller.item as Tile).item.id === tileId) { - if (endOfGesture) { - return { - scale: 1, - zIndex: 1, - shadow: 1, - x: tile.x, - y: tile.y, - width: tile.width, - height: tile.height, - immediate: disableAnimations || ((key) => key === "zIndex"), - // Allow the tile's position to settle before pushing its - // z-index back down - delay: (key) => (key === "zIndex" ? 500 : 0), - }; - } else { - return { - scale: 1.1, - zIndex: 2, - shadow: 15, - x: tileX, - y: tileY, - immediate: - disableAnimations || - ((key) => key === "zIndex" || key === "x" || key === "y"), - }; - } - } else { - return {}; - } - }); + springRef.current + .find((c) => (c.item as Tile).item.id === tileId) + ?.start( + endOfGesture + ? { + scale: 1, + zIndex: 1, + shadow: 1, + x: tile.x, + y: tile.y, + width: tile.width, + height: tile.height, + immediate: disableAnimations || ((key) => key === "zIndex"), + // Allow the tile's position to settle before pushing its + // z-index back down + delay: (key) => (key === "zIndex" ? 500 : 0), + } + : { + scale: 1.1, + zIndex: 2, + shadow: 15, + x: tileX, + y: tileY, + immediate: + disableAnimations || + ((key) => key === "zIndex" || key === "x" || key === "y"), + } + ); const overTile = tiles.find( (t) =>