Please tell me how to bind button events to swipeleft.

/ / Setup the buttons.

$(options.buttonLeft).bind("mouseup",this,function(event){
    event.data.rotate(-1);    
    return false;
});

$("- sharpstage"). On ("swipeleft", function () {

)

});

how to bind these two events to trigger the button event when sliding to the left, but you do not need to press button

swipeleft uses jQuery mobile

Mar.05,2021

function triggerBtn() {
    $(options.buttonLeft).bind('mouseup',this,function(event){
        event.data.rotate(-1);    
        return false;
    });
}

$("-sharpstage").on("swipeleft",function(){
    triggerBtn()
});
Menu