Fixing value of Events.dragDiv

This commit is contained in:
Tim Mickel 2016-01-21 16:49:58 -05:00
parent f2bd87d60f
commit 878e5597b3

View file

@ -95,7 +95,7 @@ export default class Events {
// small drag div that is a parent of frame that the dragging block
// can be a child of. This improves dragging performance.
static init () {
var dragDiv = document.createElement('div');
dragDiv = document.createElement('div');
dragDiv.id = 'dragDiv';
dragDiv.style.position = 'absolute';
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
var frameDiv = gn('frame');
frameDiv.appendChild(dragDiv);
dragDiv = dragDiv;
}
static startDrag (e, c, atstart, atend, atdrag, atclick, athold) {
dragged = false;