Fixed bug when shapes came back after undo

This commit is contained in:
Mahdi Dibaiee 2014-02-17 19:41:41 +03:30
parent 7da82fc905
commit a709c5bb12

View File

@ -63,7 +63,7 @@ $(window).resize(sizeAndPos);
if (!window.active || settings.type == 'line') return; if (!window.active || settings.type == 'line') return;
var xy = relative(e.pageX, e.pageY); var xy = relative(e.pageX, e.pageY);
drawPoint(xy.x, xy.y); drawPoint(xy.x, xy.y);
}).on('mouseup mouseleave', function(e) { }).on('mouseup', function(e) {
e.preventDefault(); e.preventDefault();
window.active = false; window.active = false;