当前位置:网站首页>In wechat applet, after jumping from one page to another, I found that the page scrolled synchronously after returning
In wechat applet, after jumping from one page to another, I found that the page scrolled synchronously after returning
2022-07-05 10:19:00 【huxiaoxiao.】
Problem description :
There is a recent project bug, Introduced another component in one component , Suppose the names of these two components are A and B
I am here A Click at the top of the page to jump to B page , stay B Page scrolls to bottom , Select a value to return automatically A( Or click the back button at the top to return to A), It's time to find out A Also scroll to the bottom .
resolvent :
1. Not recommended , Recommend to use 2
Through the components of prestige applet scroll-view, Set fixed height , Through scroll-view Medium bindscroll Method , Get the distance from the top when scrolling , And save the assignment . Call wx.pageScrollTo, Among them scrollTop It's the value you recorded , That's it
2.
Similar to the first method , But it's simpler , It's also the use of scroll-view, Take you whole A Of Scrollable area Wrap it up , Note that Scrollable area , The problem is solved when the height is fixed
One more word here , Generally, the normal return key is provided by the applet , Normal return will not have this problem , For reference only !
边栏推荐
- Uni app running to wechat development tool cannot Preview
- Shortcut keys for vscode
- Tianlong Babu TLBB series - about items dropped from packages
- 请问大佬们 有遇到过flink cdc mongdb 执行flinksql 遇到这样的问题的么?
- Events and bubbles in the applet of "wechat applet - Basics"
- Write double click event
- 面试:Bitmap像素内存分配在堆内存还是在native中
- MySQL character type learning notes
- LiveData 面试题库、解答---LiveData 面试 7 连问~
- A high density 256 channel electrode cap for dry EEG
猜你喜欢
《天天数学》连载58:二月二十七日
WorkManager学习一
@Serializedname annotation use
Swift set pickerview to white on black background
如何判断线程池已经执行完所有任务了?
Solution of ellipsis when pytorch outputs tensor (output tensor completely)
Redis如何实现多可用区?
How to plan the career of a programmer?
程序员如何活成自己喜欢的模样?
Detailed explanation of the use of staticlayout
随机推荐
高级 OpenCV:BGR 像素强度图
【黑马早报】罗永浩回应调侃东方甄选;董卿丈夫密春雷被执行超7亿;吉利正式收购魅族;华为发布问界M7;豆瓣为周杰伦专辑提前开分道歉...
[C language] the use of dynamic memory development "malloc"
《通信软件开发与应用》课程结业报告
把欧拉的创新带向世界 SUSE 要做那个引路人
@Serializedname annotation use
> Could not create task ‘:app:MyTest.main()‘. > SourceSet with name ‘main‘ not found.问题修复
Cerebral Cortex:有向脑连接识别帕金森病中广泛存在的功能网络异常
C语言实现QQ聊天室小项目 [完整源码]
How can PostgreSQL CDC set a separate incremental mode, debezium snapshot. mo
Redis如何实现多可用区?
WorkManager學習一
官网给的这个依赖是不是应该为flink-sql-connector-mysql-cdc啊,加了依赖调
Timed disappearance pop-up
报错:Module not found: Error: Can‘t resolve ‘XXX‘ in ‘XXXX‘
《剑来》语句摘录(七)
Activity enter exit animation
Should the dependency given by the official website be Flink SQL connector MySQL CDC, with dependency added
Glide advanced level
天龙八部TLBB系列 - 单体技能群伤