efront 3.15.7 → 3.17.1
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/apps/pivot/log/boot.js +36 -4
- package/apps/pivot/main.less +1 -0
- package/coms/basic/JSAM.js +72 -19
- package/coms/basic/Speed.js +2 -2
- package/coms/basic/cross_.js +1 -1
- package/coms/basic/lazy.js +6 -2
- package/coms/basic/loader.js +2 -2
- package/coms/basic/parseYML.js +1 -1
- package/coms/basic/renderExpress.js +3 -3
- package/coms/frame/route.js +54 -17
- package/coms/kugou/song.js +3 -3
- package/coms/zimoli/Item.js +40 -25
- package/coms/zimoli/appendChild.js +6 -8
- package/coms/zimoli/container.js +10 -0
- package/coms/zimoli/data.js +1 -6
- package/coms/zimoli/dispatch.js +13 -1
- package/coms/zimoli/drag.js +4 -2
- package/coms/zimoli/getGenerator.js +4 -4
- package/coms/zimoli/getTreeFromData.js +3 -0
- package/coms/zimoli/getValue.js +1 -1
- package/coms/zimoli/list.js +1 -1
- package/coms/zimoli/menu.js +36 -2
- package/coms/zimoli/menuItem.html +4 -1
- package/coms/zimoli/menuItem.js +9 -2
- package/coms/zimoli/menuItem.less +23 -2
- package/coms/zimoli/menuList.html +1 -1
- package/coms/zimoli/menuList.js +37 -31
- package/coms/zimoli/menuList.less +1 -1
- package/coms/zimoli/moveupon.js +6 -4
- package/coms/zimoli/on.js +173 -162
- package/coms/zimoli/once.js +6 -5
- package/coms/zimoli/onmounted.js +1 -1
- package/coms/zimoli/render.js +19 -6
- package/coms/zimoli/renderDefaults.js +1 -0
- package/coms/zimoli/resize.js +18 -0
- package/coms/zimoli/scrollbar.js +20 -8
- package/coms/zimoli/scrollbar.less +22 -1
- package/coms/zimoli/vbox.js +7 -3
- package/coms/zimoli/zimoli.js +1 -1
- package/package.json +1 -1
- package/public/efront.js +1 -1
package/coms/zimoli/vbox.js
CHANGED
|
@@ -84,7 +84,7 @@ function ybox(generator) {
|
|
|
84
84
|
var stop = _box.stopY;
|
|
85
85
|
var stop2 = lazy(function () {
|
|
86
86
|
scrollY.smooth(stop);
|
|
87
|
-
},
|
|
87
|
+
}, 60);
|
|
88
88
|
var decrease = function () {
|
|
89
89
|
var res = _decrease(increaser_t) + _decrease(increaser_b);
|
|
90
90
|
if (!res) {
|
|
@@ -126,7 +126,12 @@ function ybox(generator) {
|
|
|
126
126
|
// ie
|
|
127
127
|
addClass(_box, "trident");
|
|
128
128
|
} else {
|
|
129
|
+
var wheelTime = 0;
|
|
129
130
|
onmousewheel(_box, function (event) {
|
|
131
|
+
if (event.timeStamp - wheelTime > 60 && Math.abs(event.deltaY) < 12) {
|
|
132
|
+
wheelTime = event.timeStamp;
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
130
135
|
var deltay = -event.deltaY;
|
|
131
136
|
if (event.moveLocked) return;
|
|
132
137
|
event.moveLocked = true;
|
|
@@ -137,7 +142,6 @@ function ybox(generator) {
|
|
|
137
142
|
box = getTargetIn(e => e === _box || /^(?:auto|scroll)$/i.test(getComputedStyle(e).overflowY) && e.scrollHeight - e.scrollTop > e.clientHeight, event.target);
|
|
138
143
|
}
|
|
139
144
|
if (box === _box) {
|
|
140
|
-
event.preventDefault();
|
|
141
145
|
scrollY.call(_box, -deltay, false);
|
|
142
146
|
stop2();
|
|
143
147
|
}
|
|
@@ -169,7 +173,7 @@ function ybox(generator) {
|
|
|
169
173
|
temp = temp.parentNode;
|
|
170
174
|
}
|
|
171
175
|
this.YScrollBoxId = +scrollId + 1;
|
|
172
|
-
}
|
|
176
|
+
};
|
|
173
177
|
if (isMounted(_box)) initScrollId.call(_box);
|
|
174
178
|
on("append")(_box, initScrollId);
|
|
175
179
|
on("remove")(_box, scrollY.reset);
|
package/coms/zimoli/zimoli.js
CHANGED
|
@@ -145,7 +145,7 @@ function go(pagepath, args, history_name, oldpagepath) {
|
|
|
145
145
|
history_name.activate = pagepath;
|
|
146
146
|
history_name.activateNode = _page;
|
|
147
147
|
}
|
|
148
|
-
if (isString(pagepath)) {
|
|
148
|
+
else if (isString(pagepath)) {
|
|
149
149
|
if (fullfill_is_dispatched > 0) return;
|
|
150
150
|
fullfill_is_dispatched = 1;
|
|
151
151
|
var event = createEvent("zimoli");
|