From 9b4bcbe76831c3b7d1a82b0fa0e05d228a1aa61f Mon Sep 17 00:00:00 2001 From: mcmlxxix <> Date: Mon, 27 Apr 2020 01:56:11 +0000 Subject: [PATCH] abort top-level canvas check if frame is a parentless bastard child (might make it a bit faster in single-frame scenarios?) --- exec/load/frame.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/load/frame.js b/exec/load/frame.js index 1074c38d51..f079acac2e 100644 --- a/exec/load/frame.js +++ b/exec/load/frame.js @@ -1653,7 +1653,7 @@ Display.prototype.__drawChar__ = function(ch,attr,xpos,ypos) { Display.prototype.__getTopCanvas__ = function(x,y) { var top = undefined; for each(var c in this.__properties__.canvas) { - if(c.hasData(x,y)) + if(c.frame.parent == undefined || c.hasData(x,y)) top = c; } return top; -- GitLab