Permalink
Browse files

fix switch translate3d bug

  • Loading branch information...
1 parent e58e08b commit cd59190beee2a3856b29c6d5bb411617fd008235 @lihongxun945 lihongxun945 committed Aug 31, 2016
Showing with 9 additions and 0 deletions.
  1. +8 −0 compatibility.md
  2. +1 −0 src/components/switch/switch.less
View
@@ -0,0 +1,8 @@
+# Android
+
+## switch 导致页面无法滚动
+
+- 环境:米4 安卓5.1.1 MIUI7.0 微信6.3.25
+- 重现步骤:在List 中使用 switch 的时候,如果超出一屏高度,则会导致页面无法滚动或者很难滚动
+- 原因:显示按钮的伪元素的 `translate3d` 属性导致的
+- 解决方法:`-webkit-backface-visibility: hidden;`
@@ -32,6 +32,7 @@
cursor: pointer;
position: relative;
transition: 300ms;
+ -webkit-backface-visibility: hidden;
&:before {
content:' ';
position: absolute;

0 comments on commit cd59190

Please sign in to comment.