From 0b83fd839a7d81445d7710dc00a2b53226d564f5 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 7 Jun 2021 02:12:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=BB=9A=E8=BD=AE=E4=B9=9F=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=B1=8F=E5=B9=95=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/init.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Zframework/init.lua b/Zframework/init.lua index 6b925f70..f0c72708 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -156,7 +156,12 @@ function love.mousereleased(x,y,k,touch) end function love.wheelmoved(x,y) if SCN.swapping then return end - if SCN.wheelMoved then SCN.wheelMoved(x,y)end + if SCN.wheelMoved then + SCN.wheelMoved(x,y) + else + WIDGET.unFocus() + WIDGET.drag(0,0,0,100*y) + end end function love.touchpressed(id,x,y)