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

Watch Autoplay Prop #344

Merged
merged 4 commits into from
Dec 18, 2018
Merged

Watch Autoplay Prop #344

merged 4 commits into from
Dec 18, 2018

Conversation

csmoakpax8
Copy link
Contributor

@csmoakpax8 csmoakpax8 commented Dec 10, 2018

Watch Autoplay Prop to enable/disable autoplay after initialization.

Motivation and Context

To be able to pause autoplay if the user interacts with any of the slides. The current pause on hover functionality didnt meet my needs.

Fixes/Addresses: #229

How Has This Been Tested?

I added a vue-play example that demonstrates code change.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • I have included a vue-play example (if this is a new feature)

AdminXVII and others added 4 commits December 6, 2018 21:38
…323)

* fix(carousel): Flush the slides left when they don't fill the width (#323)

When there are too few slides to fill the row, with scrollPerPage, the slides were flushed right instead of left.
By bounding maxOffest to a minimum of 0, the slides are aligned on the left-hand-side

Fix #323

* style(play): Use capitals in tests for consistency
@quinnlangille
Copy link
Member

Hey @csmoakpax8, sorry for the delay on reviewing this - we've been wrapping up the year in office and it's been crazy lol. This is a great addition, and IMO should have been part of the original feature. I'll merge it into our v0.17.0 working branch as a feature! Thanks for the contribution :octocat:

@quinnlangille quinnlangille changed the base branch from master to v0.17.0 December 18, 2018 16:11
@quinnlangille quinnlangille merged commit 7d5cb5c into SSENSE:v0.17.0 Dec 18, 2018
quinnlangille pushed a commit that referenced this pull request Dec 19, 2018
* fix(carousel): flush the slides left when they don't fill the width (#323)

* fix(carousel): Flush the slides left when they don't fill the width (#323)

When there are too few slides to fill the row, with scrollPerPage, the slides were flushed right instead of left.
By bounding maxOffest to a minimum of 0, the slides are aligned on the left-hand-side

Fix #323

* style(play): Use capitals in tests for consistency

* v0.16.1

* chore: build

* feat(standard): watch autoplay prop and enable/disable autoplay
@gertvdkolk
Copy link

I understand this feature ship with version 0.17.0?
Any idea when this will be published?

@quinnlangille
Copy link
Member

@gertvdkolk should be early next week!

VojtechKlos pushed a commit to Symphony9/vue-carousel that referenced this pull request Dec 20, 2018
* fix(carousel): flush the slides left when they don't fill the width (SSENSE#323)

* fix(carousel): Flush the slides left when they don't fill the width (SSENSE#323)

When there are too few slides to fill the row, with scrollPerPage, the slides were flushed right instead of left.
By bounding maxOffest to a minimum of 0, the slides are aligned on the left-hand-side

Fix SSENSE#323

* style(play): Use capitals in tests for consistency

* v0.16.1

* chore: build

* feat(standard): watch autoplay prop and enable/disable autoplay
quinnlangille pushed a commit that referenced this pull request Dec 20, 2018
* Clean up to prepare for test script refactor (#330)

* fix(precommit): use jest exit code

* fix(jest): restore coverage collection context

* chore(package.json): remove phased out test tools

* style(eslint): commit eslint fixes (#336)

* feat: add watcher to Autoplay Prop (#344)

* fix(carousel): flush the slides left when they don't fill the width (#323)

* fix(carousel): Flush the slides left when they don't fill the width (#323)

When there are too few slides to fill the row, with scrollPerPage, the slides were flushed right instead of left.
By bounding maxOffest to a minimum of 0, the slides are aligned on the left-hand-side

Fix #323

* style(play): Use capitals in tests for consistency

* v0.16.1

* chore: build

* feat(standard): watch autoplay prop and enable/disable autoplay

* feat(pagination) added an option to add custom title in pagination buttons

* updated test snapshots

* fixed wrong conflict resolution of carousel.vue
quinnlangille pushed a commit that referenced this pull request Dec 27, 2018
* fix(carousel): flush the slides left when they don't fill the width (#323)

* fix(carousel): Flush the slides left when they don't fill the width (#323)

When there are too few slides to fill the row, with scrollPerPage, the slides were flushed right instead of left.
By bounding maxOffest to a minimum of 0, the slides are aligned on the left-hand-side

Fix #323

* style(play): Use capitals in tests for consistency

* v0.16.1

* chore: build

* feat(standard): watch autoplay prop and enable/disable autoplay
quinnlangille pushed a commit that referenced this pull request Dec 27, 2018
* Clean up to prepare for test script refactor (#330)

* fix(precommit): use jest exit code

* fix(jest): restore coverage collection context

* chore(package.json): remove phased out test tools

* style(eslint): commit eslint fixes (#336)

* feat: add watcher to Autoplay Prop (#344)

* fix(carousel): flush the slides left when they don't fill the width (#323)

* fix(carousel): Flush the slides left when they don't fill the width (#323)

When there are too few slides to fill the row, with scrollPerPage, the slides were flushed right instead of left.
By bounding maxOffest to a minimum of 0, the slides are aligned on the left-hand-side

Fix #323

* style(play): Use capitals in tests for consistency

* v0.16.1

* chore: build

* feat(standard): watch autoplay prop and enable/disable autoplay

* feat(pagination) added an option to add custom title in pagination buttons

* updated test snapshots

* fixed wrong conflict resolution of carousel.vue
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.

4 participants