diff --git a/index.php b/index.php
index 4f05931..e8ba009 100644
--- a/index.php
+++ b/index.php
@@ -351,7 +351,7 @@ $t = $text['index'];
diff --git a/lib/ice-coder.js b/lib/ice-coder.js
index 0fd29b7..55f3b5e 100644
--- a/lib/ice-coder.js
+++ b/lib/ice-coder.js
@@ -1496,6 +1496,9 @@ var ICEcoder = {
this.setMinimapLayout(cM);
+ ICEcoder.mouseDownMinimap = true;
+ this.jumpMinimapPositon(400, 0);
+
get('docExplorer').style.right = "-220px";
}
},
@@ -1534,13 +1537,13 @@ var ICEcoder = {
}
},
- jumpMinimapPositon: function(e) {
+ jumpMinimapPositon: function(yPos, buttons) {
var cM, mmPosY;
if (ICEcoder.mouseDownMinimap) {
cM = this.getcMInstance();
// Set mid height position
- mmPosY = e.y - get('miniMapContainer').getBoundingClientRect().top - (get('miniMapBox').getBoundingClientRect().height / 2);
+ mmPosY = yPos - get('miniMapContainer').getBoundingClientRect().top - (get('miniMapBox').getBoundingClientRect().height / 2);
// Unless it would be beyond bottom, if so, set to bottom
if (mmPosY > get('miniMapContainer').getBoundingClientRect().height - get('miniMapBox').getBoundingClientRect().height) {
mmPosY = get('miniMapContainer').getBoundingClientRect().height - get('miniMapBox').getBoundingClientRect().height;
@@ -1560,7 +1563,7 @@ var ICEcoder = {
cM.scrollTo(0, yPos); // this.position.y
}
// If mouse buttons up, we no longer have mouse down on minimap
- if (e.buttons === 0) {
+ if (buttons === 0) {
ICEcoder.mouseDownMinimap = false;
}
},
@@ -2888,6 +2891,16 @@ var ICEcoder = {
}
this.dragCursorTest();
if (this.mouseY>62) {this.setTabWidths();};
+
+ if (get("miniMapBox")) {
+ var mmBoxBCR = get("miniMapBox").getBoundingClientRect();
+ if (
+ mmBoxBCR.left <= this.mouseX && mmBoxBCR.top <= this.mouseY &&
+ mmBoxBCR.right >= this.mouseX && mmBoxBCR.bottom >= this.mouseY
+ ) {
+ document.body.style.cursor = "pointer";
+ }
+ }
},
// Test if we need to show a drag cursor or not