View Issue Details

IDProjectCategoryView StatusLast Update
0034938LazarusLCLpublic2019-04-26 22:36
ReporterChris Rorden Assigned ToDmitry Boyarintsev  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformMacBook 2012 Retina 13"OSDarwin 
Product Version2.1 (SVN) 
Summary0034938: OpenGL on Cocoa does not send mouse right-drag messages
DescriptionThe attached diff file patches glcocoanscontext.pas so "MouseMove" messages are sent when the mouse drags with the right button down. This replicates behavior of the OpenGL context in Linux and Windows.

The attached zip file includes a demo application.
Steps To ReproduceSee attached demo
TagsNo tags attached.
Fixed in Revision61059
LazTarget-
WidgetsetCocoa
Attached Files

Activities

Chris Rorden

2019-01-24 19:49

reporter  

rightDrag.diff (271 bytes)   
89a90
>     procedure rightMouseDragged(event: NSEvent); override;
479a481,487
> procedure TCocoaOpenGLView.rightMouseDragged(event: NSEvent);
> begin
>   if Assigned(callback)
>     then callback.MouseMove(event)
>     else inherited rightMouseDragged(event);
> end;
> 
rightDrag.diff (271 bytes)   

Chris Rorden

2019-01-24 19:49

reporter  

openGL_right_drag.zip (39,652 bytes)

Dmitry Boyarintsev

2019-04-26 14:58

developer   ~0115824

thanks for the patch. Applied with some extra changes for the middle mouse button.

please test and close if ok

Issue History

Date Modified Username Field Change
2019-01-24 19:49 Chris Rorden New Issue
2019-01-24 19:49 Chris Rorden File Added: rightDrag.diff
2019-01-24 19:49 Chris Rorden File Added: openGL_right_drag.zip
2019-04-26 14:58 Dmitry Boyarintsev Assigned To => Dmitry Boyarintsev
2019-04-26 14:58 Dmitry Boyarintsev Status new => resolved
2019-04-26 14:58 Dmitry Boyarintsev Resolution open => fixed
2019-04-26 14:58 Dmitry Boyarintsev Fixed in Revision => 61059
2019-04-26 14:58 Dmitry Boyarintsev LazTarget => -
2019-04-26 14:58 Dmitry Boyarintsev Widgetset Cocoa => Cocoa
2019-04-26 14:58 Dmitry Boyarintsev Note Added: 0115824
2019-04-26 22:36 Chris Rorden Status resolved => closed