Fix isMoving not set to false sometimes. Closes #350. Version 0.9.31.

This commit is contained in:
kangax 2012-12-15 17:29:04 +01:00
parent 7eae38db57
commit b5b901e99e
6 changed files with 261 additions and 66 deletions

View file

@ -1,6 +1,6 @@
/*! Fabric.js Copyright 2008-2012, Printio (Juriy Zaytsev, Maxim Chernyak) */
var fabric = fabric || { version: "0.9.30" };
var fabric = fabric || { version: "0.9.31" };
if (typeof exports !== 'undefined') {
exports.fabric = fabric;

312
dist/all.js vendored

File diff suppressed because it is too large Load diff

8
dist/all.min.js vendored

File diff suppressed because one or more lines are too long

BIN
dist/all.min.js.gz vendored

Binary file not shown.

View file

@ -1,7 +1,7 @@
{
"name": "fabric",
"description": "Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.",
"version": "0.9.30",
"version": "0.9.31",
"author": "Juriy Zaytsev <kangax@gmail.com>",
"keywords": ["canvas", "graphic", "graphics", "SVG", "node-canvas", "parser", "HTML5", "object model"],
"repository": "git://github.com/kangax/fabric.js",

View file

@ -259,9 +259,10 @@
this._objects[i].setCoords();
}
target.isMoving = false;
// only fire :modified event if target coordinates were changed during mousedown-mouseup
if (this.stateful && target.hasStateChanged()) {
target.isMoving = false;
this.fire('object:modified', { target: target });
target.fire('modified');
}