鼠标松开时如果有选中的控件就不触发场景的鼠标松开/点击事件
This commit is contained in:
@@ -149,10 +149,13 @@ end
|
|||||||
function love.mousereleased(x,y,k,touch)
|
function love.mousereleased(x,y,k,touch)
|
||||||
if touch or SCN.swapping then return end
|
if touch or SCN.swapping then return end
|
||||||
mx,my=ITP(xOy,x,y)
|
mx,my=ITP(xOy,x,y)
|
||||||
WIDGET.release(mx,my)
|
if WIDGET.sel then
|
||||||
if SCN.mouseUp then SCN.mouseUp(mx,my,k)end
|
WIDGET.release(mx,my)
|
||||||
if lastX and SCN.mouseClick and(mx-lastX)^2+(my-lastY)^2<62 then
|
else
|
||||||
SCN.mouseClick(mx,my,k)
|
if SCN.mouseUp then SCN.mouseUp(mx,my,k)end
|
||||||
|
if lastX and SCN.mouseClick and(mx-lastX)^2+(my-lastY)^2<62 then
|
||||||
|
SCN.mouseClick(mx,my,k)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
function love.wheelmoved(x,y)
|
function love.wheelmoved(x,y)
|
||||||
|
|||||||
Reference in New Issue
Block a user