Cocoa - Odd behavior Drag and Drop between two Listboxes
- Lazarus/FPC Version: Lazarus 2.3.0 (rev main-2_3-439-ga669e08450) FPC 3.2.2 x86_64-darwin-cocoa
- Operating System: macOS Monterey 12.2.1
- CPU / Bitness: Intel, 64 bits
What happens
I have a simple form (example project attached), with 2 Listboxes.
Listbox1 is on the left en full form height. It has more rows than can be shown (eg. must scroll to see all rows). Listbox1 has DragMode set to dmAutomatic.
Listbox2 is not full form height and has "Accept:=true" in the onDragOver event.
When dragging rows from Listbox1 to Listbox2, the cursor correctly changes to a "+" (and drag and drop works). When scrolling Listbox1 however, it is as if the "area" that can receive rows in Listbox2 moved.
What did you expect
To be able to drag and drop rows from one Listbox to another.
Steps to reproduce
Create new application. Place one Listbox (1) on the form, make it full height. Set Dragmode to dmAutomatic. Populate with more items than can be seen without scrolling. Place another Listbox (2) on the form, maybe half height. Set "Accept:=true" in the onDragOver event. Drag row 1 from Listbox1 to Listbox2. Works. Now scroll Listbox1 all the way down and try to drag the last row to Listbox2. Doesn't work
See also screen recording and attached example project. Example.zip! ScreenRecording
Also reported in forum: https://forum.lazarus.freepascal.org/index.php/topic,58999.0.html
I'm new to GitLab - I hope this is the appropriate place to report bugs ...