Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Safari IPhoneX] transform needs to be forced to open the GPU acceleration #2672

Closed
1 task
Thunf opened this issue Jun 26, 2018 · 1 comment · Fixed by #2674
Closed
1 task

[Safari IPhoneX] transform needs to be forced to open the GPU acceleration #2672

Thunf opened this issue Jun 26, 2018 · 1 comment · Fixed by #2674
Assignees

Comments

@Thunf
Copy link

Thunf commented Jun 26, 2018

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.2.0

Environment

Mozilla/5.0 (iPhone; CPU iPhone OS 11_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15F79 ChannelId(10) Nebula WK PSDType(0) Language/zh-Hans

Reproduction link

is.a.secret

Steps to reproduce

<StickyContainer>
  <Tabs tabs={[{title: 1}, {title: 2}]} renderTabBar={ (props) => {
    return (<Sticky>
      {({ style }) => <div style={{ ...style, zIndex: 1 }}><Tabs.DefaultTabBar {...props} /></div>}
    </Sticky>);
  } }>
    <div>1</div>
    <div>2</div>
  </Tabs>
</StickyContainer>

When change the tabs, some slender lines appears.

What is expected?

Don't show slender lines.

What is actually happening?

Some slender lines appears


.am-tabs-default-bar-underline {
  transform: translate3d(0, 0, 0);
}

It can be resolved by code above.

@doxiaodong doxiaodong self-assigned this Jun 26, 2018
@doxiaodong
Copy link
Contributor

Not only the Tabs use 2d animate without opening GPU acceleration. Try to check other components. @KgTong @ziluo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants