Skip to content
This repository was archived by the owner on Nov 18, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion source/jquery.slides.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@
$.data this, "current", @options.start - 1
$.data this, "vendorPrefix", @_getVendorPrefix()

#Check if only one element is present
if @data.total == 1
$element.show()
return false

# Detect touch device
if typeof TouchEvent != "undefined"
$.data this, "touch", true
Expand Down Expand Up @@ -516,7 +521,7 @@
# Stop/pause slideshow on mouse enter
slidesContainer.bind "mouseenter", =>
clearTimeout @data.restartDelay
$.data this, "restartDelay", null
$.data this, "restartDelay", null
@stop()

# Play slideshow on mouse leave
Expand Down
10 changes: 7 additions & 3 deletions source/jquery.slides.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.