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

Disable pausing autoPlay on hover #55

Closed
dom-turnbull opened this issue Feb 17, 2015 · 40 comments
Closed

Disable pausing autoPlay on hover #55

dom-turnbull opened this issue Feb 17, 2015 · 40 comments

Comments

@dom-turnbull
Copy link

As far as I can tell, it's not possible to disable this as yet.

Is this in the works? If it not, can it be added?

@desandro desandro changed the title Disable pauseOnHover Disable pausing autoPlay on hover Feb 17, 2015
@desandro
Copy link
Member

Pausing autoPlay on hover is a good pattern as it puts some level of control back to the user looking at the gallery. IMO, removing it would be an anti-pattern.

But I'm interested to hear what others think. If you would like to see this feature added to Flickity, +1 or subscribe to this issue.

@zslabs
Copy link

zslabs commented Feb 27, 2015

+1

A typical pattern for this could be if Flickity was used as a "full-page" background-slider for photography websites that you'd want to auto-cycle through. Not my personal preference, but a valid use-case nonetheless.

@remisture
Copy link

+1

2 similar comments
@mickdekkers
Copy link

+1

@stuart-mccoy
Copy link

+1

@mbryne
Copy link

mbryne commented Apr 9, 2015

+1

Agree with @zslabs as that is the use case I have just come across.

A full sized video / image slider that should autoPlay (with bonus points for being able to toggle autoPlay programatically for when video starts playing, currently I am resorting to solution outlined here #94)

@mogholito
Copy link

+1

4 similar comments
@limpa123
Copy link

+1

@halfempty
Copy link

+1

@jonnyhaynes
Copy link

+1

@PaoloFalomo
Copy link

+1

@notflip
Copy link

notflip commented Jun 17, 2015

+1!

@elainen
Copy link

elainen commented Jun 18, 2015

+1

3 similar comments
@permanyer
Copy link

+1

@gorgoserio
Copy link

+1

@PaoloFalomo
Copy link

+1

@nicholas-c
Copy link

+1 only if it's an option and not default

@joshrounsville
Copy link

+1

4 similar comments
@wekii
Copy link

wekii commented Jul 2, 2015

+1

@chrishale
Copy link

+1

@nlfonseca
Copy link

+1

@fizzydigital
Copy link

+1

@tgadiot
Copy link

tgadiot commented Aug 27, 2015

+1

2 similar comments
@emidiotorre
Copy link

+1

@HammenWS
Copy link

+1

@michaelwoodruff
Copy link

IMO, removing it would be an anti-pattern

I agree, that it's an anti-pattern, although judging by the number of +1 it seems a lot of people want it.

@hardley
Copy link

hardley commented Oct 1, 2015

+1

1 similar comment
@akmur
Copy link

akmur commented Oct 15, 2015

+1

@bootsified
Copy link

+1 Yes, it's an anti-pattern if the slider is part of the UI. I have a site, though, that uses the slider as a fullscreen background behind the content. I need to be able to disable the "pause on hover". It would be really nice to have the option, even though it would rarely get used.

@nvartolomei
Copy link

I agree that this is an anti pattern usually but when using flickity for full screen sliders this is an issue.

+1 👍

@ghost
Copy link

ghost commented Nov 6, 2015

+1 for full screen sliders it would be really helpful.

@desandro
Copy link
Member

desandro commented Nov 7, 2015

Next version will have pauseAutoPlayOnHover option. Set this pauseAutoPlayOnHover: false to keep autoPlay playing on hover.

@richgcook
Copy link

@desandro I had a quick question. I have custom left/right nav set up which is 50% split over the image, so if you hover over the left and click, the slider proceeds previous and if you hover over the right the slider proceeds next. By having this, however, it seems to have voided the hover and pause function as there is a higher z-index container over the slider. Is there any way to call the pause method so I could bind it if the user hovers over the higher z-index container rather than the slider?

@desandro
Copy link
Member

desandro commented Dec 3, 2015

@richgcook Yes see metafizzy/flickity-docs#5 (comment) for the Player API

@desandro
Copy link
Member

Flickity v1.1.2 has been released with pauseAutoPlayOnHover option. See pauseAutoPlayOnHover: false to keep autoPlay playing on hover. See demo http://codepen.io/desandro/pen/yeeQJK

Thanks for all the feedback on this issue. 🌈 🐻

@richgcook
Copy link

@desandro Amazing! Thanks!

@richgcook
Copy link

@desandro Ah right yes so I'd still need to use the Player API if I have custom left/right nav on a higher z-index over the slider. Be nice if you could add a selector to the pauseAutoPlayOnHover for example pauseAutoPlayOnHover: '.slider-navigation'. Thanks for all your help.

@dalvujovic
Copy link

Please ,when slide is clicked autoplay stops,i dont want that,how to make autoplay to work after clicking

hankpillow added a commit to diogonsouza/flickity that referenced this issue Jun 8, 2017
Fix double playPlayer

* tag 'v1.2.1':
  👷 build v1.2.1
  🐞 Prevent double autoPlay starting
  👷 build v1.2.0
  📝 switch to npmcdn
  🐱 Add .github with issue template
  🐞 remove touchVerticalScroll logic, not needed
  🐞 cellAlign w/ freeScroll on cellChange
  Add aria-label to previous and next buttons
  🛠 add playPlayer, pausePlayer, unpausePlayer methods
  v1.1.2 in dist file banner comments
  build v1.1.2
  Fix initializing with high initialIndex;
  hack to fix scroll jump after focus; Fixes metafizzy#76
  add pauseAutoPlayOnHover option; Ref metafizzy#55
  alphabetize bower.json dependencies
@dicktornfeldt
Copy link

@dalvujovic I solved this by adding pointer-events: none to a wrapper div.

@luksak
Copy link

luksak commented Nov 15, 2021

@dicktornfeldt that only works as long as you don't need to have anything clickable in the slideshow. In my case I have links that stop working with this approach.

Here is one that keeps the elements clickable:

flkty.on('click', () => {
  flkty('playPlayer');
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests