Hold eventListener when two object collides

Hi all,

I have a paddle that I move with a ‘touch’ event on a
 button (I use this event to call a function to move the paddle)

Is there a way to hold paddle from moving when it collides
with a different object?

Here the code I’m using

function gameListeners(action)

           if(action == ‘add’) then

                btnBlue:addEventListener(‘touch’, movePaddle)

           else

                btnblue:removeEventListener(‘touch’, movePaddl
           end
end

function movePaddle(e)

    if(e.phase == ‘began’ and e.target.name == ‘btnblue’) then

        paddleBlue.rotation = paddleBlue.rotation*-1

    elseif……

   …
   end

I tried to use the preCollision/Collision events but faild.

Regards,

Guy