Coder Social home page Coder Social logo

一个小缺陷 about shazam HOT 3 CLOSED

bawn avatar bawn commented on May 23, 2024
一个小缺陷

from shazam.

Comments (3)

dengchenglin avatar dengchenglin commented on May 23, 2024

所以在切换Menu时还是得将所有childscrollView的offest恢复成zero才行啊

from shazam.

bawn avatar bawn commented on May 23, 2024

@dengchenglin 这个问题,可以说是缺陷也可以说是feature,事实上在切换Menu后把childscrollView的offest恢复成zero是更简单的做法。即刻采用的就是切换后保留childscrollView 的 offset 的做法,而包括淘票票、抖音在内的一些APP 都是在切换后直接设置成zero的做法。关于这边讨论具体可以看我博客https://bawn.github.io/2019/02/NestedScrolling/

from shazam.

bawn avatar bawn commented on May 23, 2024

@dengchenglin 现在可以通过实现 override func keepChildScrollViewOffset(_ pageController: ShazamPageViewController) -> Bool 方法开启和关闭切换Menu后是否要保持 offset

from shazam.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.