Comments (3)
所以在切换Menu时还是得将所有childscrollView的offest恢复成zero才行啊
from shazam.
@dengchenglin 这个问题,可以说是缺陷也可以说是feature,事实上在切换Menu后把childscrollView的offest恢复成zero是更简单的做法。即刻采用的就是切换后保留childscrollView 的 offset 的做法,而包括淘票票、抖音在内的一些APP 都是在切换后直接设置成zero的做法。关于这边讨论具体可以看我博客https://bawn.github.io/2019/02/NestedScrolling/
from shazam.
@dengchenglin 现在可以通过实现 override func keepChildScrollViewOffset(_ pageController: ShazamPageViewController) -> Bool
方法开启和关闭切换Menu后是否要保持 offset
from shazam.
Related Issues (9)
- Replace snapkit with NSLayouConstraint may shrink lib size
- 为什么 ShazamTopView 只使用 userInteractionViews.first 响应事件?既然只用第一个,传 array 的意义是什么? HOT 2
- 哎,header能响应事件的区域没法滑动 果然事事难两全 HOT 1
- 设置headerView高度为0时,pageController会偏移一个屏幕的宽度 HOT 1
- 滑动header位置问题 HOT 1
- iOS13.3 iphone 11 Pro模拟器切换 viewcontroller 不正常
- 垂直滑动问题 HOT 1
- 下拉刷新导致的滑动问题 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shazam.