优化home加载
This commit is contained in:
@@ -150,6 +150,7 @@ export class TopBar extends Laya.Script {
|
||||
}
|
||||
|
||||
onOver(evt: Laya.Event): void {
|
||||
Laya.Render.canvas.style.cursor = "pointer"
|
||||
const Box = evt.target as Laya.Box
|
||||
const sprite = Box.getChildByName("Sprite") as Laya.Sprite
|
||||
sprite.graphics.clear()
|
||||
@@ -157,6 +158,7 @@ export class TopBar extends Laya.Script {
|
||||
}
|
||||
|
||||
onOut(evt: Laya.Event): void {
|
||||
Laya.Render.canvas.style.cursor = ""
|
||||
const Box = evt.target as Laya.Box
|
||||
const sprite = Box.getChildByName("Sprite") as Laya.Sprite
|
||||
sprite.graphics.clear()
|
||||
|
||||
Reference in New Issue
Block a user