From 84232f62c6db8a6ce8d2e8287f8609e388e794d1 Mon Sep 17 00:00:00 2001 From: obiot Date: Mon, 28 Jan 2013 22:48:41 +0800 Subject: [PATCH] ticket #108: fixed mouse position detection when the viewport offset is not (0,0) --- plugins/debug/debugPanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/debug/debugPanel.js b/plugins/debug/debugPanel.js index a00603eabd..7c8c0d2085 100644 --- a/plugins/debug/debugPanel.js +++ b/plugins/debug/debugPanel.js @@ -105,7 +105,7 @@ me.game.sort(); } // register a mouse event for the checkboxes - me.input.registerMouseEvent('mousedown', this.rect, this.onClick.bind(this)); + me.input.registerMouseEvent('mousedown', this.rect, this.onClick.bind(this), true); // make it visible this.visible = true; // force repaint