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

pause on hover is not working #30

Open
samuelecioni opened this issue Mar 28, 2014 · 2 comments
Open

pause on hover is not working #30

samuelecioni opened this issue Mar 28, 2014 · 2 comments

Comments

@samuelecioni
Copy link

Hi,
I've tried to set the pause on hover feature.

All I have done is to set "pause: true" like this:
var latestNewsSlidr = slidr.create('slidr-ul', {
99 breadcrumbs: false,
100 controls: 'none',
101 direction: 'horizontal',
102 fade: true,
103 overflow: true,
104 timing: { 'cube': '0.5s ease-in' },
105 transition: 'linear',
106 pause: true,
107 touch: true
108 }).add('h', ['one', 'two', 'three', 'one']).auto();

It doesn't seem to work. I've also put a console log in the source code, and every time i hover the slidr it log "paused", but it continues to slide.

// Automatically transition between slides.
1170 auto: function(, msec, direction) {
1171 if (
.started && slides.isdir(direction)) {
1172 actions.stop(_);
1173 .auto.msec = msec;
1174 .auto.direction = direction;
1175 .auto.id = setInterval(function() {
1176 if (!(
.settings['pause'] && nav.mouse.isOver(
.id))) slides.slide(
, direction);
1177 console.log("paused");
1178 }, msec);
1179 }
1180 },

I have done also another try:

latestNewsSlidr {

background: red;
}

When I hover it began red, but it continues to slide.

Any idea why?

@iVolume
Copy link

iVolume commented Jul 3, 2014

Hi! I have the same problem. Did find somebody answer?

@rodalopin
Copy link

Same problem... common issue not resolved?

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

No branches or pull requests

3 participants