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

[Bug Report] Tabs (Android): Slider animation is delayed after swipe #3631

Closed
nekitk opened this issue Mar 20, 2018 · 3 comments
Closed

[Bug Report] Tabs (Android): Slider animation is delayed after swipe #3631

nekitk opened this issue Mar 20, 2018 · 3 comments
Assignees
Labels
T: bug Functionality that does not work as intended/expected
Milestone

Comments

@nekitk
Copy link

nekitk commented Mar 20, 2018

Versions and Environment

Vuetify: 1.0.9
Vue: 2.5.7
Browsers: Google Chrome 65.0.3325.109
OS: Android 5.1.1

Steps to reproduce

  1. Go to https://vuetifyjs.com/en/components/tabs using Chrome@Android
  2. Swipe between tabs in example

Expected Behavior

Slider moves with tab transition (like when you click on a tab)

Actual Behavior

Slider animation is delayed and plays after tab change
http://s.csssr.ru/U07B23NE8/screencast_2018-03-20_19-00-24.mp4
(video captured from actual device using Chrome's inspect)

Reproduction Link

https://vuetifyjs.com/en/components/tabs

@KaelWD KaelWD added the T: bug Functionality that does not work as intended/expected label Mar 20, 2018
@KaelWD
Copy link
Member

KaelWD commented Mar 20, 2018

Confirmed, that's quite a weird one. It only happens to me the first time switching to a tab, after that it's fine. Also only occurs on an actual device, chrome device toolbar works normally.

@nekitk
Copy link
Author

nekitk commented Mar 20, 2018

@KaelWD Was able to reproduce it in Chrome with CPU throttling enabled. Did some experiments and it looks like the cause is this setTimeout:

setTimeout(this.callSlider, 0)

Delay disappeared after replacing setTimeout with either $nextTick or requestAnimationFrame. But it seems to break #3234 as slider have slightly more width on inital load after replacement.

@johnleider johnleider self-assigned this Feb 26, 2019
@johnleider johnleider added this to the v2.0.0 milestone Feb 26, 2019
@johnleider johnleider mentioned this issue Feb 26, 2019
8 tasks
@johnleider
Copy link
Member

Fixed in f22d754

@lock lock bot locked as resolved and limited conversation to collaborators Mar 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

No branches or pull requests

3 participants