template-carousel-mobile/0093-on_area

8 lines
194 B
Plaintext

on_area = function(s, x,y)
if s.x == nil then return end
if x < s.x then return end
if x > s.x+s.w then return end
if y < s.y then return end
if y > s.y+s.h then return end
return true
end