From 87b32b51e9bf041e2dcfb0c959a069c4d413cd92 Mon Sep 17 00:00:00 2001 From: mattpass Date: Sun, 1 Mar 2020 09:17:10 +0000 Subject: [PATCH] Fix some refs re minimap --- lib/ice-coder.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/ice-coder.js b/lib/ice-coder.js index cfc64e8..6e2683d 100644 --- a/lib/ice-coder.js +++ b/lib/ice-coder.js @@ -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);