Skip to content

Commit

Permalink
More mouse V3.2 (#192)
Browse files Browse the repository at this point in the history
* More_Mouse V3.2

fix(code):修复了显示提示被全屏遮挡的BUG
fix(code):修复了在隐藏动画播放时显示提示报错的BUG
fix(block):修复并重新上线全屏系列积木

* fix More_Mouse V3.2

fix(code):全屏可能导致的BUG
feat(block):检测是否全屏,当退出全屏

* More_Mouse V3.2

fix(block):下线全屏积木

* More_Mouse V3.2

fix(code):删除多余的函数

* More_Mouse V3.2

fix(code):修复设置分辨率导致gandi渲染出问题的BUG

* More_Mouse V3.2

pref(code):优化鼠标滚轮老是卡住的问题,减小概率
  • Loading branch information
little-starts authored Mar 12, 2024
1 parent 5925d31 commit 9b1af89
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions wit_cat/More_Mouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -1630,19 +1630,13 @@ class WitCatMouse {
}, 50);
});
// 给页面绑定滑轮滚动事件
document.addEventListener(
'wheel',
(e) => {
this.MouseWheel = e.deltaY;
if (this.timer !== null) {
clearTimeout(this.timer);
}
this.timer = setTimeout(() => {
this.MouseWheel = 0;
}, 30);
},
{ capture: true }
);
document.addEventListener('wheel', (e) => {
clearTimeout(this.timer);
this.MouseWheel = e.deltaY;
this.timer = setTimeout(() => {
this.MouseWheel = 0;
}, 30);
}, { capture: true });
window.addEventListener('deviceorientation', (e) => {
this.Gyroscope = e;
});
Expand Down

0 comments on commit 9b1af89

Please sign in to comment.