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

fix ios左滑再次执行动画 #2259

Merged
merged 3 commits into from
Dec 1, 2017
Merged

fix ios左滑再次执行动画 #2259

merged 3 commits into from
Dec 1, 2017

Conversation

agileago
Copy link
Contributor

@agileago agileago commented Nov 29, 2017

Please makes sure the items are checked before submitting your PR, thank you!

  • Rebase before creating a PR to keep commit history clear.
  • Only One commit
  • No eslint errors

@codecov-io
Copy link

codecov-io commented Nov 29, 2017

Codecov Report

Merging #2259 into v2 will increase coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##               v2   #2259      +/-   ##
=========================================
+ Coverage   20.47%   20.5%   +0.03%     
=========================================
  Files         213     213              
  Lines        5183    5183              
  Branches      586     586              
=========================================
+ Hits         1061    1063       +2     
+ Misses       4015    4013       -2     
  Partials      107     107
Impacted Files Coverage Δ
src/components/selector/index.vue 18.6% <0%> (+4.65%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fdec8aa...ebbc142. Read the comment docs.

@wg5945
Copy link
Collaborator

wg5945 commented Nov 30, 2017

这个试了下的确可以,不过左划返回后貌似页面会有一个闪动,动画上是否需要再修改下

@agileago
Copy link
Contributor Author

对,这个我再调调看看具体怎么处理

@wg5945
Copy link
Collaborator

wg5945 commented Nov 30, 2017

@agileago 可以这样

<transition
        @after-enter="$vux.bus && $vux.bus.$emit('vux:after-view-enter')"
        :name="viewTransition" :css="!!direction">

前面还有个记log的删一下

@agileago
Copy link
Contributor Author

抱歉,下午有点忙没来得及看,刚试了试,确实不闪屏了,那应该没啥问题了,给力

@agileago
Copy link
Contributor Author

agileago commented Dec 1, 2017

这个需要vue-router的支持来判断是否是事件触发路由变化还是主动调用方法触发路由变化, 我已经提了issue, vuejs/vue-router#1916

@airyland airyland merged commit f3a4176 into airyland:v2 Dec 1, 2017
@agileago agileago mentioned this pull request Dec 4, 2017
@imtns
Copy link

imtns commented Dec 20, 2017

套用了你们的代码,现在左滑返回动画不会再次执行了,但是右滑前进还是会再次执行一次,所以要怎么修改呢?

@minhail
Copy link

minhail commented Feb 6, 2018

试了在ios8上无效。(微博的在ios8上也是可以的)

@PLQin
Copy link

PLQin commented Sep 7, 2020

# 我的问题是

vue 在 ios safari,右滑返回首页时页面先变空白,接着展示上一个页面的内容,最后出现首页的内容 ;

另外 : 并不仅仅是返回首页时才有这个问题, 其他页面也存在这个现象

# 我是如何解决的

放弃使用 vue transition , emmm 太难了

# 参考

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 this pull request may close these issues.

8 participants