Skip to content

Commit c31b3b1

Browse files
committed
Fix: blocks could sometimes (in chrome) not be added to canvas
1 parent 6d9ea80 commit c31b3b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/pipes-ui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2681,7 +2681,7 @@ window.onload = function() {
26812681
// element has position fixed)
26822682
target.style.webkitTransform =
26832683
target.style.transform =
2684-
'translate(' + (x - 150) + 'px, ' + (y - document.querySelector('#blocks').scrollTop) + 'px)';
2684+
'translate(' + (x - 0) + 'px, ' + (y - document.querySelector('#blocks').scrollTop) + 'px)';
26852685

26862686
// update the posiion attributes
26872687
target.setAttribute('data-x', x);

0 commit comments

Comments
 (0)