efront 4.14.2 → 4.14.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/coms/kugou/player.js +7 -5
- package/coms/zimoli/moveupon.js +1 -0
- package/coms/zimoli/selectDate.js +1 -1
- package/package.json +1 -1
- package/public/efront.js +1 -1
package/coms/kugou/player.js
CHANGED
|
@@ -457,11 +457,13 @@ var player = function (player) {
|
|
|
457
457
|
else $scope.play();
|
|
458
458
|
});
|
|
459
459
|
var timeout = 0;
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
460
|
+
moveupon(player, {
|
|
461
|
+
start() {
|
|
462
|
+
timeout = setTimeout(switchPlayList, 560);
|
|
463
|
+
},
|
|
464
|
+
end() {
|
|
465
|
+
clearTimeout(timeout);
|
|
466
|
+
}
|
|
465
467
|
})
|
|
466
468
|
return player;
|
|
467
469
|
}(createControls());
|
package/coms/zimoli/moveupon.js
CHANGED
|
@@ -63,6 +63,7 @@ function moveupon(target, { start, move, end }, initialEvent) {
|
|
|
63
63
|
var cancel = function (event) {
|
|
64
64
|
if (event.touches && event.touches.length) return;
|
|
65
65
|
if (event.touches) extendTouchEvent(event);
|
|
66
|
+
if (onclick.preventClick) event.preventDefault();
|
|
66
67
|
removeAllListeners();
|
|
67
68
|
if (isFunction(offmouseup)) offmouseup();
|
|
68
69
|
if (isFunction(offtouchcancel)) offtouchcancel();
|
|
@@ -162,7 +162,7 @@ var fixcent = function (count) {
|
|
|
162
162
|
* @param {Date} date
|
|
163
163
|
*/
|
|
164
164
|
var buildYear = function (date) {
|
|
165
|
-
var year = ((+date.年() + 10) / 20
|
|
165
|
+
var year = ((+date.年() + 10) / 20 | 0) * 20,
|
|
166
166
|
src = m2n(year + 10, year - 10),
|
|
167
167
|
last_src = [year - 12, year - 11],
|
|
168
168
|
next_src = [year + 10, year + 11],
|