Fix some refs re minimap

This commit is contained in:
mattpass
2020-03-01 09:17:10 +00:00
parent 9274db05e2
commit 87b32b51e9

View File

@@ -4,7 +4,6 @@ var get = function(elem) {
};
var iceLoc = window.location.pathname;
// var iceDir = iceLoc.substring(0, iceLoc.lastIndexOf('/'));
// Main ICEcoder object
var ICEcoder = {
@@ -1506,15 +1505,15 @@ var ICEcoder = {
maxHeight = parseInt(get('docExplorer').style.height,10) <= parseInt(get('miniMapContent').getBoundingClientRect().height,10)
? parseInt(get('docExplorer').style.height,10)
: parseInt(get('miniMapContent').getBoundingClientRect().height,10);
newPerc = (this.position.y/(maxHeight-this.miniMapBoxHeight));
newPerc = (this.position.y/(maxHeight-ICEcoder.miniMapBoxHeight));
yPos = (cM.getScrollInfo().height-cM.getScrollInfo().clientHeight)*newPerc;
cM.scrollTo(0,yPos); // this.position.y
});
draggie.on( 'pointerDown', function( event, pointer ) {
this.mouseDownMinimap = true;
ICEcoder.mouseDownMinimap = true;
});
draggie.on( 'pointerUp', function( event, pointer ) {
this.mouseDownMinimap = false;
ICEcoder.mouseDownMinimap = false;
});
this.setMinimapLayout(cM);