<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - GalleryIconView should Select items on MouseButtonDown"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=133891">133891</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>GalleryIconView should Select items on MouseButtonDown
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>7.1.0.0.alpha0+ Master
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>himajin100000@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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:
<a href="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#336</a>

<a href="https://opengrok.libreoffice.org/xref/core/svx/source/gallery2/galbrws2.cxx?r=b512ce25#369">https://opengrok.libreoffice.org/xref/core/svx/source/gallery2/galbrws2.cxx?r=b512ce25#369</a>

inherits the ValueSet class
<a href="https://opengrok.libreoffice.org/xref/core/include/svx/galctrl.hxx?r=d26d1da8#89">https://opengrok.libreoffice.org/xref/core/include/svx/galctrl.hxx?r=d26d1da8#89</a>

the eventhandler is called on MouseButtonUp, not MouseButtonDown
<a href="https://opengrok.libreoffice.org/xref/core/svtools/source/control/valueset.cxx?r=d6c32cff#495">https://opengrok.libreoffice.org/xref/core/svtools/source/control/valueset.cxx?r=d6c32cff#495</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>