Skip to content

Commit 78c2976

Browse files
committed
Bump v0.12.58
2 parents 54dabff + 6633fec commit 78c2976

File tree

4 files changed

+22
-16
lines changed

4 files changed

+22
-16
lines changed

dist/grapes.js

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23262,7 +23262,7 @@ module.exports = function () {
2326223262
plugins: plugins,
2326323263

2326423264
// Will be replaced on build
23265-
version: '0.12.57',
23265+
version: '0.12.58',
2326623266

2326723267
/**
2326823268
* Initializes an editor based on passed options
@@ -24883,18 +24883,17 @@ module.exports = Backbone.View.extend({
2488324883
var pfx = this.ppfx || this.pfx;
2488424884
var sortCls = pfx + 'grabbing';
2488524885
var emBody = em ? em.get('Canvas').getBody() : '';
24886+
24887+
// Avoid updating body className as it causes a huge repaint
24888+
// Noticeable with "fast" drag of blocks
2488624889
if (active) {
2488724890
em && em.get('Canvas').startAutoscroll();
24888-
body.className += ' ' + sortCls;
24889-
if (em) {
24890-
emBody.className += ' ' + sortCls;
24891-
}
24891+
//body.className += ' ' + sortCls;
24892+
//if (em) emBody.className += ' ' + sortCls;
2489224893
} else {
2489324894
em && em.get('Canvas').stopAutoscroll();
24894-
body.className = body.className.replace(sortCls, '').trim();
24895-
if (em) {
24896-
emBody.className = emBody.className.replace(sortCls, '').trim();
24897-
}
24895+
//body.className = body.className.replace(sortCls, '').trim();
24896+
//if(em) emBody.className = emBody.className.replace(sortCls, '').trim();
2489824897
}
2489924898
},
2490024899

@@ -43880,11 +43879,18 @@ module.exports = function () {
4388043879
* Start autoscroll
4388143880
*/
4388243881
startAutoscroll: function startAutoscroll() {
43882+
var _this = this;
43883+
4388343884
this.dragging = 1;
4388443885
var toListen = this.getScrollListeners();
4388543886
frameRect = CanvasView.getFrameOffset(1);
43886-
(0, _mixins.on)(toListen, 'mousemove', this.autoscroll);
43887-
(0, _mixins.on)(toListen, 'mouseup', this.stopAutoscroll);
43887+
43888+
// By detaching those from the stack avoid browsers lags
43889+
// Noticeable with "fast" drag of blocks
43890+
setTimeout(function () {
43891+
(0, _mixins.on)(toListen, 'mousemove', _this.autoscroll);
43892+
(0, _mixins.on)(toListen, 'mouseup', _this.stopAutoscroll);
43893+
}, 0);
4388843894
},
4388943895
autoscroll: function autoscroll(e) {
4389043896
e.preventDefault();

dist/grapes.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "grapesjs",
33
"description": "Free and Open Source Web Builder Framework",
4-
"version": "0.12.57",
4+
"version": "0.12.58",
55
"author": "Artur Arseniev",
66
"license": "BSD-3-Clause",
77
"homepage": "http://grapesjs.com",

0 commit comments

Comments
 (0)