mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-04 15:54:00 +01:00
Fix some refs re minimap
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user