Skip to content

Commit

Permalink
Bump v0.12.58
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Jan 4, 2018
2 parents 54dabff + 6633fec commit 78c2976
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 16 deletions.
28 changes: 17 additions & 11 deletions dist/grapes.js
Original file line number Diff line number Diff line change
Expand Up @@ -23262,7 +23262,7 @@ module.exports = function () {
plugins: plugins,

// Will be replaced on build
version: '0.12.57',
version: '0.12.58',

/**
* Initializes an editor based on passed options
Expand Down Expand Up @@ -24883,18 +24883,17 @@ module.exports = Backbone.View.extend({
var pfx = this.ppfx || this.pfx;
var sortCls = pfx + 'grabbing';
var emBody = em ? em.get('Canvas').getBody() : '';

// Avoid updating body className as it causes a huge repaint
// Noticeable with "fast" drag of blocks
if (active) {
em && em.get('Canvas').startAutoscroll();
body.className += ' ' + sortCls;
if (em) {
emBody.className += ' ' + sortCls;
}
//body.className += ' ' + sortCls;
//if (em) emBody.className += ' ' + sortCls;
} else {
em && em.get('Canvas').stopAutoscroll();
body.className = body.className.replace(sortCls, '').trim();
if (em) {
emBody.className = emBody.className.replace(sortCls, '').trim();
}
//body.className = body.className.replace(sortCls, '').trim();
//if(em) emBody.className = emBody.className.replace(sortCls, '').trim();
}
},

Expand Down Expand Up @@ -43880,11 +43879,18 @@ module.exports = function () {
* Start autoscroll
*/
startAutoscroll: function startAutoscroll() {
var _this = this;

this.dragging = 1;
var toListen = this.getScrollListeners();
frameRect = CanvasView.getFrameOffset(1);
(0, _mixins.on)(toListen, 'mousemove', this.autoscroll);
(0, _mixins.on)(toListen, 'mouseup', this.stopAutoscroll);

// By detaching those from the stack avoid browsers lags
// Noticeable with "fast" drag of blocks
setTimeout(function () {
(0, _mixins.on)(toListen, 'mousemove', _this.autoscroll);
(0, _mixins.on)(toListen, 'mouseup', _this.stopAutoscroll);
}, 0);
},
autoscroll: function autoscroll(e) {
e.preventDefault();
Expand Down
6 changes: 3 additions & 3 deletions dist/grapes.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "grapesjs",
"description": "Free and Open Source Web Builder Framework",
"version": "0.12.57",
"version": "0.12.58",
"author": "Artur Arseniev",
"license": "BSD-3-Clause",
"homepage": "http://grapesjs.com",
Expand Down

0 comments on commit 78c2976

Please sign in to comment.