Kõik teated
Sagani teatab veast
#95282: "Tiles display incorrectly if the CSS "rotate" property is not supported"
Mille kohta see veateade on?
Mis juhtus? Palun vali alt
Viga kuvamisel: osa kuvatud teabest oli vale (mõjutamata oluliselt mängu käiku)
Detailne kirjeldus
• Kirjelda kuvamise probleemi. Kui sul on sellest veast ekraanipilt (hea tava), saad kasutada Imgur.com selle üleslaadimiseks ja lingi siia kopeerida.
NOTE: This _might_ be the root cause of boardgamearena.com/bug?id=92210
# Problem
If the user's browser does not yet support the "rotate" property, then when placing tiles the image
will not rotate.
The game data gets updated with a rotation (0°, 90°, 180°, 270°) but the image will remain unrotated
(0°) hence it looks like the tile is not rotated; this improper feedback causes confusion and can even
caue improper placement (if they wrongly believe they have NOT rotated).
# The Fix
Simply adding the proper `transform:rotate()` lines, shown below, to these CSS classes will fix this
problem:
.sag_tile-rot-90 {
rotate: 90deg;
transform: rotate(90deg);
}
.sag_tile-rot-180 {
rotate: 180deg;
transform: rotate(180deg);
}
.sag_tile-rot-270 {
rotate: 270deg;
transform: rotate(270deg);
}
# Reference
Support for the rotate _attribute_ is barely 12 months old for many browsers.
See: developer.mozilla.org/en-US/docs/Web/CSS/rotate#browser_compatibility
And: developer.mozilla.org/en-US/docs/Web/CSS/transform-function/rotate#browser_compatibility
• mis on sinu veebilehitseja?
Google Chrome v103 and v115
Aruande ajalugu
BoCo Marvelous • Viga ei ole veel arendajate poolt taasloodud:
aug 6 th 2023 19:27 • 100% repeatable based on the browser version
lefalaf • Viga ei ole veel arendajate poolt taasloodud:
nov 4 th 2023 18:18 • Looks like a different change is needed. I thought this might fix the inability to rotate on older browsers.
I tried this today, using BGA's CSS override option. It allowed me to rotate in an older version of chrome on an older mac that won't update chrome to the latest. It also allowed me to rotate on safari on my iPhone which is not on the latest annual update.
However, the rotation order was strange and would point up (single "1" blue tile with 1 blue arrow) when it should have been another orientation, as I cycled through the options. I committed the tile where it should have been automatically satisfied (pointing up to blue), but it didn't move the token. I then checked on a laptop with the latest macOS after removing the CSS override and see that the tile is not as it visually looked when I placed it (with the CSS override). So the visual and the actual were out of sync with just the addition of this code, at least using the common BGA CSS override in the profile.
Thanks for putting this out there in an attempt to correct what really needs to be implemented and tested directly into the game code.
I tried this today, using BGA's CSS override option. It allowed me to rotate in an older version of chrome on an older mac that won't update chrome to the latest. It also allowed me to rotate on safari on my iPhone which is not on the latest annual update.
However, the rotation order was strange and would point up (single "1" blue tile with 1 blue arrow) when it should have been another orientation, as I cycled through the options. I committed the tile where it should have been automatically satisfied (pointing up to blue), but it didn't move the token. I then checked on a laptop with the latest macOS after removing the CSS override and see that the tile is not as it visually looked when I placed it (with the CSS override). So the visual and the actual were out of sync with just the addition of this code, at least using the common BGA CSS override in the profile.
Thanks for putting this out there in an attempt to correct what really needs to be implemented and tested directly into the game code.
Lisa midagi sellele raportile
Palun lisage siia midagi, mis tundub asjakohane selle vea reprodutseerimiseks või teie soovituse mõistmiseks:
- Teine laua ID / käigu ID
- Kas F5 lahendas probleemi?
- Kas probleem esines mitmel korral? Igal korral?
- Kui sul on sellest veast ekraanipilt (hea tava), saad kasutada Imgur.com selle üleslaadimiseks ja lingi siia kopeerida.