Commit 458c8d03 authored by bbaer's avatar bbaer
Browse files

quick save.

parent bd605ab3
......@@ -6,12 +6,12 @@ var QfqNS = QfqNS || {};
$(function (n) {
n.Fabric = function() {
var qFabric = this;
this.canvas = this.__canvas = new fabric.Canvas('c', {
isDrawingMode: true,
stateful: true,
enableRetinaScaling: true
});
var qFabric = this;
this.canvas.on('mouse:up', function (e) { qFabric.defaultMouseUpEvent(e) });
this.canvas.on('mouse:down', function (e) { qFabric.defaultMouseDownEvent(e) });
this.canvas.on('mouse:move', function (e) { qFabric.defaultMouseMoveEvent(e) });
......@@ -215,8 +215,8 @@ $(function (n) {
n.Fabric.prototype.resizeRectangle = function(o) {
if (!this.isDown) return;
var rect = canvas.getActiveObject();
var pointer = canvas.getPointer(o.e);
var rect = this.canvas.getActiveObject();
var pointer = this.canvas.getPointer(o.e);
if(this.origX > pointer.x){
rect.set({
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment