Cocoa: OpenGL MouseDown fires twice
Original Reporter info from Mantis: crlab @neurolabusc1
-
Reporter name: Chris Rorden
Original Reporter info from Mantis: crlab @neurolabusc1
- Reporter name: Chris Rorden
Description:
The Cocoa OpenGL component sends the mouse down event twice on each click. In the example below, one would expect the caption to report 0,1,2,3... but instead we see 1,3,5....
Steps to reproduce:
var
gNumDown : integer = 0;
procedure TGLForm1.GLboxMouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
gMouseY := Y;
caption := inttostr(gNumDown);
gNumDown := gNumDown + 1;
end;
Mantis conversion info:
- Mantis ID: 35480
- OS: Darwin
- OS Build: 10.11.6
- Build: 61098
- Platform: MacBook 2012 Retina 13"
- Version: 2.0.3 (SVN)
- Fixed in revision: 61135 (#2b46c6d5)