Circular Slider using Jquery
问题 How to slide mouse in circular ? Draw an arc and a mouse pointer in a canvas. Mouse should be drag gable on the circular path? //function to create mouse event to drag the mouse hover the arc function mousedrag() { var canvasoffset = $(this.canvas).offset(); var offsetX = canvasoffset.left; var offsetY = canvasoffset.top; var mouseX = parseInt(e.offsetX || e.clientX - offsetX); var mouseY = parseInt(e.offsetY || e.clientY - offsetY); var radius = this.width / 2; var twoPI = 2 * Math.PI; var