You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constzingPan=newZingTouch.Pan({numInputs: 1,threshold: 1,});constpanEnd=zingPan.end;// save the default pan end function.zingPan.end=functioncustomEnd(inputs,state,element){// ... stuff you want done before the default end.panEnd(inputs,state,element);// ... stuff you want done after the default end.};ZingTouchActiveRegion.bind(this.canvasElement,zingPan,(e)=>{});
It's a little less than elegant, but it works well and makes things easy to customize, although you do have to poke around in the source code.
Yeah, the api looks pretty bad. I wonder if is buggy on mobile. I'm coming from hammerjs and sometimes it misses some pan/pinch events and is pretty annoying. Happens the same with this library? or any known annoying bugs?
What should I do to get the pan end event?
The text was updated successfully, but these errors were encountered: