Browse Source

Bump v0.12.58

pull/712/head v0.12.58
Artur Arseniev 8 years ago
parent
commit
78c2976e61
  1. 28
      dist/grapes.js
  2. 6
      dist/grapes.min.js
  3. 2
      package-lock.json
  4. 2
      package.json

28
dist/grapes.js

@ -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
@ -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();
}
},
@ -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();

6
dist/grapes.min.js

File diff suppressed because one or more lines are too long

2
package-lock.json

@ -1,6 +1,6 @@
{
"name": "grapesjs",
"version": "0.12.57",
"version": "0.12.58",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

2
package.json

@ -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",

Loading…
Cancel
Save