In my project i have given 3 buttons.The problem is even if i click outside the button, the button gets clicked sometimes the adjacent button gets clicked.
eg1 clicking outside button1 and button 1 gets clicked
eg2 clicking outside button1 and button2 gets clicked
please help me
-- Require the widget library local widget = require( "widget" ) function button1released(event) print("button1released") end function button2released(event) print("button2released") end function button3released(event) print("button3released") end local button1 = widget.newButton( { width = 140, height = 100, defaultFile = "b1.png", overFile = "b1over.png", onRelease = button1released } ) button1.x = 60 button1.y = 20 local button2 = widget.newButton( { width = 140, height = 100, defaultFile = "b2.png", overFile = "b2over.png", onRelease = button2released } ) button2.x = 160 button2.y = 20 local button3 = widget.newButton( { width = 140, height = 100, defaultFile = "b3.png", overFile = "b3over.png", onRelease = button3released } ) button3.x = 260 button3.y = 20