Skip to content

Commit

Permalink
Fix the buttonNumber method of CPEvent.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Boucher committed Apr 9, 2010
1 parent 4cc7dec commit 70410d6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions AppKit/CPEvent.j
Expand Up @@ -128,7 +128,7 @@ var _CPEventPeriodicEventPeriod = 0,
BOOL _isARepeat;
unsigned _keyCode;
DOMEvent _DOMEvent;

float _deltaX;
float _deltaY;
float _deltaZ;
Expand Down Expand Up @@ -345,7 +345,10 @@ var _CPEventPeriodicEventPeriod = 0,
*/
- (int)buttonNumber
{
return _buttonNumber;
if (_type === CPRightMouseDown || _type === CPRightMouseUp || _type === CPRightMouseDragged)
return 1;

return 0;
}

/*!
Expand Down

0 comments on commit 70410d6

Please sign in to comment.