mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-10 02:40:59 +00:00
Fix for incorrect chain received mouseEntered events.
Closes #199. Reviewed by me.
This commit is contained in:
1 parent
c7f81691bf
commit
7d158de356
1 file changed
+3
-3
@@ -1234,10 +1234,10 @@ CPTexturedBackgroundWindowMask
|
||||
var deviation = MIN(_mouseEnteredStack.length, mouseEnteredStack.length);
|
||||
|
||||
while (deviation--)
|
||||
if (_mouseEnteredStack[deviation] !== mouseEnteredStack[deviation])
|
||||
if (_mouseEnteredStack[deviation] === mouseEnteredStack[deviation])
|
||||
break;
|
||||
|
||||
var index = deviation,
|
||||
var index = deviation + 1,
|
||||
count = _mouseEnteredStack.length;
|
||||
|
||||
if (index < count)
|
||||
@@ -1248,7 +1248,7 @@ CPTexturedBackgroundWindowMask
|
||||
[_mouseEnteredStack[index] mouseExited:event];
|
||||
}
|
||||
|
||||
index = deviation;
|
||||
index = deviation + 1;
|
||||
count = mouseEnteredStack.length;
|
||||
|
||||
if (index < count)
|
||||
|
||||
Reference in new issue
Block a user