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(MdProgressSpinner): improve transition #1946

Merged
merged 3 commits into from
May 12, 2019
Merged

fix(MdProgressSpinner): improve transition #1946

merged 3 commits into from
May 12, 2019

Conversation

supachailllpay
Copy link
Contributor

Add explicit transition duration

It seems Vue cannot detect animation/transition end because of infinite animation at https://github.com/vuematerial/vue-material/blob/dev/src/components/MdProgress/MdProgressSpinner/MdProgressSpinner.vue#L260.

Split enter and leave animation in determinate mode

Use reverse animation for leave state instead.

Fix #1935

@Samuell1
Copy link
Member

Thanks for PR! But after this PR custom value for spinner is broken, can you please look at it?

@supachailllpay
Copy link
Contributor Author

I think this is broken since the previous PR. I'm not 100% sure but If I understand the code correctly.

The mdValue is only used in circleStrokeDashOffset which only used in attachCircleStyle which used once in mounted function. It means nothing will happen if mdValue changed.

If I add a watcher the same as mdDiameter for mdValue. It works fine.

What do you think?

@Samuell1
Copy link
Member

Yeah you are true, its broken before too. Yes adding watcher for mdValue should fix that.

@supachailllpay
Copy link
Contributor Author

I have updated my PR.

  • Add watcher for mdValue and also mdStroke.

  • Use CSS transition-duration property instead of explicit variable (I think this is more simple).

@marcosmoura marcosmoura changed the title Fix MdProgressSpinner transition fix(MdProgressSpinner): improve transition May 12, 2019
@marcosmoura marcosmoura merged commit 0e62ae7 into vuematerial:dev May 12, 2019
marcosmoura added a commit that referenced this pull request May 12, 2019
* origin:
  fix(MdProgressSpinner): improve transition (#1946)
marcosmoura added a commit that referenced this pull request May 12, 2019
* origin: (80 commits)
  docs: remove wrong text-shadow
  docs: add referal code
  fix(MdProgressSpinner): improve transition (#1946)
  chore: upgrade deps
  docs: fix 2 wrong property names with autocomplete docs (#2006)
  fix(MdTable): undefined table sorting #1906 (#2012)
  docs: fix dynamic tooltip text to show bottom instead of top (#2013)
  refactor(MdDatepicker): upgrade date-fns (#2037)
  fix(MdDatepicker): positioning when used inside flex container (#2036)
  fix(MdSelect): infinite loop error, when no v-model provided (#2035)
  fix(MdApp): normalized component's tag before checking to match slot … (#1994)
  chore: some misspellings in config.js (#1986)
  fixFixed non unique ids on MdSelect (#2001)
  fix(MdInput): invert password on-off icons (#2008)
  test: fix test selectors for checkbox and switch (#2009)
  docs: add default theme as a suggestion (#2043)
  Fixed md-wave transition (#2034)
  fix(MdRipple): fixed missing ripple effect (#2059)
  docs: add codefund ads and remove old sponsors
  fix(MdSvgLoader): svg loader for invalid / missing mimetype (#1942)
  ...
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.

[MdProgress] Spinner causes delayed v-show DOM cleanup
3 participants