mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
d130f5861821e9be2d2b82f72553825e93fbb2c5
This reviews [1] which solved the problem in most cases (hopefully) but not in all cases. Animated elements which overflow the screen on the right made an horizontal scrollbar appear on iPhone <= 8 using Safari, even when they were not animating yet. This was due to Safari ignoring the `transform: none` rule on inactive elements, preferring to consider the animation transform. As a fix, we forced no possible overflow of the page when we saw this safari bug on the first animated element. The problem here... is that this Safari bug does not occur in every situation. For example, if the animated element is inside a column which is marked as hidden in mobile, Safari actually understands the no transform rule. So if the first animated element was in such a situation but another element in the page had the safari bug... the problem was there again. As a fix, we now check all animated elements for the Safari bug, instead of only the first one. That should do the trick. This commit also reviews the comment: the problem is not confined to old iPhones. This was reproduced on the latest iPhone with latest iOS and up-to-date Safari. opw-3204613 opw-3201937 Related to opw-3165651 [1]: https://github.com/odoo/design-themes/commit/d027d9a547ea460ebb53c6ee56ba3b03aac97703 closes odoo/design-themes#636 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Description
No description provided
Languages
SCSS
49.6%
Python
25.4%
JavaScript
24.4%
Rich Text Format
0.5%