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.
@@ -457,11 +457,13 @@ var player = function (player) {
457
457
  else $scope.play();
458
458
  });
459
459
  var timeout = 0;
460
- on("pointerdown")(player, function () {
461
- timeout = setTimeout(switchPlayList, 600);
462
- });
463
- on("pointerup")(player, function () {
464
- clearTimeout(timeout);
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());
@@ -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).toFixed(0) * 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],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efront",
3
- "version": "4.14.2",
3
+ "version": "4.14.3",
4
4
  "description": "简化前端开发,优化web性能",
5
5
  "main": "public/efront.js",
6
6
  "directories": {