add: channel switch

This commit is contained in:
Vick Scarlet
2026-07-27 14:28:08 +08:00
parent 988fcacd2d
commit 50411b82a0
16 changed files with 484 additions and 524 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
// 滚动条太灵敏
const SCROLL_START_DISTANCE = 30;
Laya.ScrollBar.prototype.loop=function(){
var mouseY=Laya.stage.mouseY;
var mouseX=Laya.stage.mouseX;
let mouseY=Laya.stage.mouseY;
let mouseX=Laya.stage.mouseX;
this._lastOffset=this.isVertical ? (mouseY-this._lastPoint.y):(mouseX-this._lastPoint.x);
if (this._clickOnly){
if (Math.abs(this._lastOffset *(this.isVertical ? Laya.stage._canvasTransform.getScaleY():Laya.stage._canvasTransform.getScaleX()))> SCROLL_START_DISTANCE){