jQuery-Knob icon indicating copy to clipboard operation
jQuery-Knob copied to clipboard

Changing the mousemove/touchmove handler to use the canvas

Open AlvinStanescu opened this issue 10 years ago • 0 comments

Hi,

I would like to know if there's any reason for which the jQuery Knob's touchmove/touchend and mousemove/mouseend event handlers are attached to the document as opposed to the canvas.

Reason: I'm working on an application where you can swipe sideways between different views, which requires me to prevent this event from propagating.

I've currently done this by hacking the library code to attach to $(this.c.canvas) instead of k.c.d, and unbinding from $(this) and everything seems to work fine on Android and iOS.

Is there any specific platform/case where this was/would be an issue?

Thanks, Alvin

AlvinStanescu avatar Oct 01 '15 09:10 AlvinStanescu