How to test touchmove event?

18 views
Skip to first unread message

Srdjan Dejanovic

unread,
Jun 1, 2017, 7:53:10 AM6/1/17
to Sinon.JS
Hi,
I have u javascript code:

DeviceHelper = function () {
   
return {
       
HandheldDevicesScrollPrevent: function () {
            $
(document).on("touchmove", "body.scroll-disabled, body.no-overflow", function (e) {
                e
.preventDefault();
               
return false;
           
});
       
}
   
}
}();

How to test touchmove event?
How to be sure that preventDefault() is called?

Reply all
Reply to author
Forward
0 new messages