Skip to content

Commit ea6d72c

Browse files
committed
merge conflicts
2 parents 94160b3 + 0046c59 commit ea6d72c

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

src/scrollable/scrollable.autoscroll.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
// do not start additional timer if already exists
5757
if (timer) { return; }
5858

59+
stopped = false;
60+
5961
root.bind('onSeek', scroll);
6062
scroll();
6163
};
@@ -65,15 +67,20 @@
6567
root.unbind('onSeek', scroll);
6668
};
6769

68-
// Original intention is to have stop not restart on hover
69-
// this doesn't appear to be ever have been implemented, can implement if requested
70+
// resume playing if not stopped
71+
api.resume = function() {
72+
stopped || api.play();
73+
};
74+
75+
// when stopped - mouseover won't restart
7076
api.stop = function() {
77+
stopped = true;
7178
api.pause();
7279
};
7380

7481
/* when mouse enters, autoscroll stops */
7582
if (opts.autopause) {
76-
root.add(api.getNaviButtons()).hover(api.pause, api.play);
83+
root.add(api.getNaviButtons()).hover(api.pause, api.resume);
7784
}
7885

7986
if (opts.autoplay) {

src/validator/validator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
return numRe.test(v);
229229
});
230230

231-
v.fn("[max]", "Please enter a value smaller than $1", function(el, v) {
231+
v.fn("[max]", "Please enter a value no larger than $1", function(el, v) {
232232

233233
// skip empty values and dateinputs
234234
if (v === '' || dateInput && el.is(":date")) { return true; }
@@ -237,7 +237,7 @@
237237
return parseFloat(v) <= parseFloat(max) ? true : [max];
238238
});
239239

240-
v.fn("[min]", "Please enter a value larger than $1", function(el, v) {
240+
v.fn("[min]", "Please enter a value of at least $1", function(el, v) {
241241

242242
// skip empty values and dateinputs
243243
if (v === '' || dateInput && el.is(":date")) { return true; }

0 commit comments

Comments
 (0)