mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2025-02-16 08:29:51 -05:00
Fixing value of Events.dragDiv
This commit is contained in:
parent
f2bd87d60f
commit
878e5597b3
1 changed files with 1 additions and 2 deletions
|
@ -95,7 +95,7 @@ export default class Events {
|
||||||
// small drag div that is a parent of frame that the dragging block
|
// small drag div that is a parent of frame that the dragging block
|
||||||
// can be a child of. This improves dragging performance.
|
// can be a child of. This improves dragging performance.
|
||||||
static init () {
|
static init () {
|
||||||
var dragDiv = document.createElement('div');
|
dragDiv = document.createElement('div');
|
||||||
dragDiv.id = 'dragDiv';
|
dragDiv.id = 'dragDiv';
|
||||||
dragDiv.style.position = 'absolute';
|
dragDiv.style.position = 'absolute';
|
||||||
dragDiv.style.width = '0px'; // size doesn't matter since children float
|
dragDiv.style.width = '0px'; // size doesn't matter since children float
|
||||||
|
@ -103,7 +103,6 @@ export default class Events {
|
||||||
dragDiv.style.zIndex = 7001; // slightly higher than ScratchJr.dragginLayer
|
dragDiv.style.zIndex = 7001; // slightly higher than ScratchJr.dragginLayer
|
||||||
var frameDiv = gn('frame');
|
var frameDiv = gn('frame');
|
||||||
frameDiv.appendChild(dragDiv);
|
frameDiv.appendChild(dragDiv);
|
||||||
dragDiv = dragDiv;
|
|
||||||
}
|
}
|
||||||
static startDrag (e, c, atstart, atend, atdrag, atclick, athold) {
|
static startDrag (e, c, atstart, atend, atdrag, atclick, athold) {
|
||||||
dragged = false;
|
dragged = false;
|
||||||
|
|
Loading…
Reference in a new issue