swipe event bug

swipe event bug

Hi everybody, I've got a problem using the swipe event, I have to swipe around 10 times to fire it.
I saw this problem in many topics but I didn't understand how to fix it.

Here's my code :

$("#article").on("swipeleft", function(){
               $(":mobile-pagecontainer").pagecontainer("change", "#pAccueil", { transition: "slide" });
        }
);  

Thank you !