efront 4.0.15 → 4.0.17
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/basic/parseYML.js
CHANGED
package/coms/zimoli/on.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
if (document.efronton) return document.efronton;
|
|
3
|
-
var is_addEventListener_enabled =
|
|
3
|
+
var is_addEventListener_enabled = !!window.addEventListener;
|
|
4
4
|
// Edg 禁用passive原因:无滚动条的元素上纵向滚动时触发整个页面回弹
|
|
5
5
|
// Chrome 禁用passive原因:无滚动条的元素上横向滚动触发浏览器导航
|
|
6
6
|
var supportPassive = false, preventPassive = /Edg|Chrome/.test(navigator.userAgent);
|
|
@@ -270,9 +270,8 @@ var remove = function (k, hk, [eventtypes, handler, context]) {
|
|
|
270
270
|
element[hk] = null;
|
|
271
271
|
if (element.removeEventListener) {
|
|
272
272
|
element.removeEventListener(k, hs.h, getListenerOption(eventtypes, k));
|
|
273
|
-
} else {
|
|
274
|
-
if (element["on" + k] === hs.h) element["on" + k] = null;
|
|
275
273
|
}
|
|
274
|
+
if (element["on" + k] === hs.h) element["on" + k] = null;
|
|
276
275
|
}
|
|
277
276
|
}
|
|
278
277
|
};
|
|
@@ -427,7 +426,7 @@ var invoke = function (event, type, pointerType) {
|
|
|
427
426
|
|
|
428
427
|
(function () {
|
|
429
428
|
var pointeractive = null;
|
|
430
|
-
if ("onpointerdown" in
|
|
429
|
+
if ("onpointerdown" in document || document.efronton) return;
|
|
431
430
|
var getPointerType = function (event) {
|
|
432
431
|
return event.type.replace(/(start|move|end|cancel|down|up|leave|out|over|enter)$/i, '');
|
|
433
432
|
};
|