Added trigger check for mousereleased