Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Allow duration of 0ms #16

Closed
wants to merge 1 commit into from

1 participant

@ronaldbarendse

When using the transition 'none' (for instant slide changes), navigating is blocked for the specified duration (it's still 'transitioning'). The workaround would be to use 1ms, but this is more intuitive (you DID set the duration).

@ronaldbarendse ronaldbarendse Allow duration of 0ms
When using the transition 'none' (for instant slide changes), navigating is blocked for the specified duration (it's still 'transitioning'). The workaround would be to use 1ms, but this is more intuitive (you DID set the duration).
cee7dcc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 2, 2012
  1. @ronaldbarendse

    Allow duration of 0ms

    ronaldbarendse authored
    When using the transition 'none' (for instant slide changes), navigating is blocked for the specified duration (it's still 'transitioning'). The workaround would be to use 1ms, but this is more intuitive (you DID set the duration).
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  Source/SlideShow.js
View
2  Source/SlideShow.js
@@ -72,7 +72,7 @@ var SlideShow = this.SlideShow = new Class({
this.current.store('slideshow:oldStyles', this.current.get('style'));
var transition = (options && options.transition) ? options.transition : slide.retrieve('slideshow-transition'),
- duration = (options && options.duration) ? options.duration : slide.retrieve('slideshow-duration'),
+ duration = (options && typeOf(options.duration) == 'number') ? options.duration : slide.retrieve('slideshow-duration'),
previous = this.current.setStyle('z-index', 1),
next = this.reset(slide).setStyle('z-index', 0),
nextIndex = this.index = next.retrieve('slideshow-index')
Something went wrong with that request. Please try again.