From 48e797a80da47e50f1038befb16f5d1e75c14274 Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Mon, 3 Sep 2012 20:20:23 +0100 Subject: [PATCH] Minor hit test optimisation. --- AppKit/CPView.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPView.j b/AppKit/CPView.j index 7160f092d..b11599d32 100644 --- a/AppKit/CPView.j +++ b/AppKit/CPView.j @@ -1508,7 +1508,7 @@ var CPCurrentToolTip, */ - (CPView)hitTest:(CPPoint)aPoint { - if (_isHidden || !_hitTests || !CPRectContainsPoint(_frame, aPoint)) + if (_isHidden || !_hitTests || !_CGRectContainsPoint(_frame, aPoint)) return nil; var view = nil,