~akkartik/carousel.love

e848a890ef04176fc39d5dcd25d0f7a1e999dcc4 — Kartik K. Agaram 2 months ago a7fb944
shield script from touch events when showing editor
3 files changed, 3 insertions(+), 0 deletions(-)

M 0155-on.touch_press
M 0156-on.touch_release
M 0157-on.touch_move
M 0155-on.touch_press => 0155-on.touch_press +1 -0
@@ 1,4 1,5 @@
on.touch_press = function(id, x,y, dx,dy, pressure)
	if Show_code then return end
	if car.touchpressed then
		call_protected(car.touchpressed, id, x,y, dx,dy, pressure)
	end

M 0156-on.touch_release => 0156-on.touch_release +1 -0
@@ 1,4 1,5 @@
on.touch_release = function(id, x,y, dx,dy, pressure)
	if Show_code then return end
	if car.touchreleased then
		call_protected(car.touchreleased, id, x,y, dx,dy, pressure)
	end

M 0157-on.touch_move => 0157-on.touch_move +1 -0
@@ 1,4 1,5 @@
on.touch_move = function(id, x,y, dx,dy, pressure)
	if Show_code then return end
	if car.touchmoved then
		call_protected(car.touchmoved, id, x,y, dx,dy, pressure)
	end