Fixed bug where lock button would toggle state even if the touch was not
let up inside its hitbox