canvas-curve
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -384,2 +384,4 @@ /** | ||
if(index >= 0 && index < this._points.length){ | ||
p.x = Math.min(Math.max(p.x, pointRadius), this._max.x - pointRadius); | ||
p.y = Math.min(Math.max(p.y, pointRadius), this._max.y - pointRadius); | ||
if((p.x - pointRadius) >= this._min.x && (p.x + pointRadius) <= this._max.x && (p.y - pointRadius) >= this._min.y && (p.y + pointRadius) <= this._max.y){ | ||
@@ -560,6 +562,5 @@ | ||
// init the mouse and keyboard events | ||
this._canvas.addEventListener('mousemove', this._onCanvasMouseMove.bind(this), false); | ||
this._canvas.addEventListener('mousedown', this._onCanvasMouseDown.bind(this), false); | ||
//this._canvas.addEventListener('mouseup', this._onCanvasMouseUp.bind(this), false); | ||
window.addEventListener('mouseup', this._onCanvasMouseUp.bind(this), false); | ||
document.body.addEventListener('mousemove', this._onCanvasMouseMove.bind(this), false); | ||
document.body.addEventListener('mouseup', this._onCanvasMouseUp.bind(this), false); | ||
this._canvas.addEventListener('dblclick', this._onCanvasMouseDbclick.bind(this), false); | ||
@@ -566,0 +567,0 @@ this._canvas.addEventListener('mouseleave', this._onCanvasMouseLeave.bind(this), false); |
{ | ||
"name": "canvas-curve", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"description": "A spline widget", | ||
@@ -5,0 +5,0 @@ "author": "moocher", |
Sorry, the diff of this file is not supported yet
106979
973