Šimon Brandner
2f147c2e98
Change cursor to default
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:53:34 +01:00
Šimon Brandner
3716ec4a25
Try to precalculate the zoom from width and height props
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:53:34 +01:00
Šimon Brandner
ebe3b36528
If the image is small don't scale
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:53:34 +01:00
Šimon Brandner
59bf542158
Fall back to natural height and width
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:53:34 +01:00
Šimon Brandner
95ea71a23a
Use a ref instead of that ugly thing
...
Sometimes I do really weird things and don't know why :D
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:53:34 +01:00
Šimon Brandner
dcd625c7e3
Rework zooming
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:53:34 +01:00
Šimon Brandner
bc62c6bec9
Fix zoom step and coeficient
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:53:34 +01:00
Šimon Brandner
d0ba142b72
Add some comments
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:53:34 +01:00
Šimon Brandner
7e2a3e3c31
Use MAX_SCALE for maxZoom
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:53:34 +01:00
Šimon Brandner
52e2c136d7
Use correct cursor when we can't zoom
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:48:06 +01:00
Šimon Brandner
3ae0bc307c
Remove logline
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:48:06 +01:00
Šimon Brandner
464ebe900d
Get rid of onWindowResize()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:48:06 +01:00
Šimon Brandner
6a405fa8e8
Don't use percanteages
...
I was an idiot to use them in the first place
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:48:06 +01:00
Šimon Brandner
0d2db0e83a
Add dynamic maxZoom and wire it all up
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:48:06 +01:00
Šimon Brandner
a1906be349
Initial code for dynamic minZoom
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-26 16:48:06 +01:00
J. Ryan Stinnett
41f4293034
Merge pull request #5911 from SimonBrandner/normalize-wheel
...
[Release] Add a WheelEvent normalization function
2021-04-23 13:14:46 +01:00
J. Ryan Stinnett
3ef5655db3
Merge pull request #5907 from matrix-org/jryans/image-bg-opacity-release
...
[Release] Use floats for image background opacity
2021-04-22 16:00:00 +01:00
J. Ryan Stinnett
d15e846025
Use floats for image background opacity
...
It seems percentages for opacity are still newish, and they seem to confuse
something which is clamping them to the 0 - 1 range (which makes sense for
floats, not percentages).
Anyway, for now we can get what we want here by using float values.
Fixes https://github.com/vector-im/element-web/issues/17036
2021-04-22 15:05:31 +01:00
Šimon Brandner
2e6397d8aa
Wire up normalizeWheelEvent()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-22 14:56:35 +02:00
Šimon Brandner
ad53b0e2e2
Add normalizeWheelEvent()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-22 14:56:12 +02:00
RiotRobot
037b433519
v3.19.0-rc.1
2021-04-21 16:53:34 +01:00
RiotRobot
b6b321f90c
Prepare changelog for v3.19.0-rc.1
2021-04-21 16:53:33 +01:00
RiotRobot
40ed8fd342
Upgrade matrix-js-sdk to 10.0.0-rc.1
2021-04-21 16:47:29 +01:00
J. Ryan Stinnett
5b8cd10ee5
Merge pull request #5896 from RiotTranslateBot/weblate-element-web-matrix-react-sdk
...
Translations update from Weblate
2021-04-21 16:29:09 +01:00
Weblate
bfa34cd394
Merge branch 'origin/develop' into Weblate.
2021-04-21 15:20:02 +00:00
Andrejs
8e0b514dc6
Translated using Weblate (Latvian)
...
Currently translated at 50.9% (1485 of 2916 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/lv/
2021-04-21 11:34:25 +00:00
Germain
3d25500f78
Merge pull request #5895 from matrix-org/gsouquet-fix-sticky-tags
...
Fix sticky tags header in room list
2021-04-21 11:07:44 +01:00
Germain Souquet
c5a1bb2d2c
fix sticky tags header in room list
2021-04-21 10:44:20 +01:00
Michael Telatynski
8373b0e69c
Merge pull request #5893 from matrix-org/t3chguy/fix/16978
...
Fix spaces filtering sometimes lagging behind or behaving oddly
2021-04-21 09:20:18 +01:00
Michael Telatynski
bae47bbd79
Merge pull request #5894 from matrix-org/t3chguy/fix/17026
...
Fix issue with spaces context switching looping and breaking
2021-04-21 09:11:26 +01:00
Germain
68fb9a78c4
Merge pull request #5874 from matrix-org/gsouquet-room-events
2021-04-21 09:09:01 +01:00
Michael Telatynski
ecd9b8d6de
Fix issue with spaces context switching looping and breaking
2021-04-21 09:01:22 +01:00
Michael Telatynski
1507f64f2b
Fix spaces filtering sometimes lagging behind or behaving oddly
2021-04-21 08:52:56 +01:00
Michael Telatynski
eba0fbf902
Merge pull request #5891 from SimonBrandner/fix/context-switching
...
Avoid being stuck in a space
2021-04-20 15:28:47 +01:00
Šimon Brandner
9b81f5b4a0
Add a comment
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-20 16:11:34 +02:00
Šimon Brandner
3adb2635ba
Revert "Remove unnecessary check"
...
This reverts commit 08c0f0a67e
.
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-20 15:40:32 +02:00
Michael Telatynski
ace8d59a2a
Fix Spaces NPE when a room with no tags gains its first tag
2021-04-20 13:12:28 +01:00
Michael Telatynski
b2e9f6731b
Merge pull request #5795 from SimonBrandner/spaces/context-switching
...
[Spaces] Context switching
2021-04-20 12:38:54 +01:00
Michael Telatynski
c4ef1f9828
Merge pull request #5415 from aaronraimist/only-member-warning
...
Warn when you attempt to leave room that you are the only member of
2021-04-20 12:33:19 +01:00
Šimon Brandner
4344ff9097
Update src/stores/SpaceStore.tsx
...
Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
2021-04-20 13:31:50 +02:00
Šimon Brandner
d4ca087c2e
Make getLastViewedRoomsStorageKey() make sense
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-20 13:24:23 +02:00
Šimon Brandner
1934c4a32f
Add getLastViewedRoomsStorageKey()
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-20 12:39:11 +02:00
Šimon Brandner
f9292c364c
Check if we are joined
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-20 12:25:56 +02:00
Šimon Brandner
08c0f0a67e
Remove unnecessary check
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-20 12:22:25 +02:00
Šimon Brandner
a3d0ccf306
Merge branch 'develop' into spaces/context-switching
2021-04-20 12:06:59 +02:00
Sagititi
b3168e479e
Translated using Weblate (Occitan)
...
Currently translated at 11.3% (331 of 2916 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/oc/
2021-04-20 08:50:20 +00:00
iaiz
8e2afcb5c2
Translated using Weblate (Spanish)
...
Currently translated at 100.0% (2916 of 2916 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/es/
2021-04-20 08:50:17 +00:00
Imre Kristoffer Eilertsen
d0df0e9099
Translated using Weblate (Norwegian Bokmål)
...
Currently translated at 63.0% (1839 of 2916 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/nb_NO/
2021-04-20 08:50:15 +00:00
MamasLT
0eee214966
Translated using Weblate (Lithuanian)
...
Currently translated at 65.1% (1901 of 2916 strings)
Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/lt/
2021-04-20 08:48:36 +00:00
Germain
9d2833c74b
Merge pull request #5884 from matrix-org/gsouquet-jitsi-logout
2021-04-20 09:16:10 +01:00