Description: See steps to reproduce Steps to Reproduce: Steps A: 0. Preferable if profile is reset. (because the gallery is a new feature and with data, but its preset items may not be copied to your profile if the profile is not renewed.) 1. Open Writer 2. Select "Gallery" from sidebar icons 3. Select something, namely "Arrows" from the listbox 4. Click "Icon View" button below the listbox. 5. Trigger MouseButtonDown on an item with a tooltip "curved-left-arrow" 5-a. DONT trigger MouseButtonUp on the Icon View. 6-a. Do nothing 7. Start Dragging the item to the document, and you can unhold the left mouse button. ==================== Steps B( for comparison) 0. Preferable if profile is reset. 1. Open Writer 2. Select "Gallery" from sidebar icons 3. Select something, namely "Arrows" from the listbox 4. Click "Icon View" button below the listbox. 5. Trigger MouseButtonDown on an item with a tooltip "curved-left-arrow" 5-b. DO trigger MouseButtonUp on the Icon View. 6-b. Trigger MouseButtonDown again on an item with a tooltip "curved-left-arrow" 7. Start Dragging the item to the document, and you can unhold the left mouse button. Actual Results: Steps A: the first item "curved-right-arrow" is inserted. Steps B: "curved-left-arrow" is inserted. Works as Expected Expected Results: "curved-left-arrow" is inserted Reproducible: Always User Profile Reset: Yes Additional Info: https://opengrok.libreoffice.org/xref/core/svx/source/gallery2/galbrws2.cxx?r=b512ce25#336 https://opengrok.libreoffice.org/xref/core/svx/source/gallery2/galbrws2.cxx?r=b512ce25#369 inherits the ValueSet class https://opengrok.libreoffice.org/xref/core/include/svx/galctrl.hxx?r=d26d1da8#89 the eventhandler is called on MouseButtonUp, not MouseButtonDown https://opengrok.libreoffice.org/xref/core/svtools/source/control/valueset.cxx?r=d6c32cff#495
Theoritically, this happens on every application that can use Gallery, so I wasn't sure what component to choose.
Confirmed. Mouse down appears to select a graphic, but the landing graphic for the category still has drag & drop focus. The wrong graphic is dragged out of the gallery. Version: 7.1.0.0.alpha0+ (x64) Build ID: 59939d2490726336546c7ad05082d23031074e12 CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Vulkan; VCL: win Locale: en-US (en_US); UI: en-US Calc: threaded
*** This bug has been marked as a duplicate of bug 134285 ***