loop or stop if going to item -1, fixes #1637
This commit is contained in:
parent
538d45ce57
commit
1759fa6b69
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ Ox.VideoElement = function(options, self) {
|
||||||
function setCurrentItem(item) {
|
function setCurrentItem(item) {
|
||||||
Ox.Log('Video', 'sCI', item, self.numberOfItems);
|
Ox.Log('Video', 'sCI', item, self.numberOfItems);
|
||||||
var interval;
|
var interval;
|
||||||
if(item >= self.numberOfItems) {
|
if(item >= self.numberOfItems || item < 0) {
|
||||||
if (self.options.loop) {
|
if (self.options.loop) {
|
||||||
item = Ox.mod(item, self.numberOfItems);
|
item = Ox.mod(item, self.numberOfItems);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue