mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 00:02:50 +02:00
Cocoa: Fixed MouseDragged Event handling in TLCLCommonCallback.MouseMove()
This commit is contained in:
parent
68bea34028
commit
abac1d0235
@ -1209,7 +1209,10 @@ begin
|
||||
NotifyApplicationUserInput(Target, Msg.Msg);
|
||||
// LCL/LM_MOUSEMOVE always return false, so we should discard return value
|
||||
DeliverMessage(Msg);
|
||||
Result:= true;
|
||||
// 1. for MouseMove Event, it has been processed by LCL,
|
||||
// and does not need Cocoa to continue processing.
|
||||
// 2. for MouseDragged Event, it needs Cocoa to continue processing.
|
||||
Result := Event.type_ = NSMouseMoved;
|
||||
|
||||
// if Screen.Cursor set, LCL won't call TCocoaWSWinControl.SetCursor().
|
||||
// we need to set the cursor ourselves
|
||||
|
Loading…
Reference in New Issue
Block a user