You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Eirik Bakke (Jira)" <ji...@apache.org> on 2021/11/05 20:54:00 UTC

[jira] [Commented] (NETBEANS-5728) ETable/OutlineView drag-and-drop selects spurious nodes

    [ https://issues.apache.org/jira/browse/NETBEANS-5728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17439510#comment-17439510 ] 

Eirik Bakke commented on NETBEANS-5728:
---------------------------------------

(I have a workaround for this one but haven't yet made a PR of it...)

> ETable/OutlineView drag-and-drop selects spurious nodes
> -------------------------------------------------------
>
>                 Key: NETBEANS-5728
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5728
>             Project: NetBeans
>          Issue Type: Improvement
>          Components: platform - Outline&amp;TreeTable
>    Affects Versions: 12.2
>         Environment: Primarily MacOS, but also occasionally on Windows.
>            Reporter: Eirik Bakke
>            Priority: Major
>
> In an OutlineView with multiple selection enabled, if the user tries to drag one row to a different position (e.g. to reorder rows when the underlying nodes support it), additional rows will be selected as the mouse moves over them during the drag operation. On MacOS, it happens 100% of the time. On Windows, I've seen this bug happen in the past as well, though much less frequently. On Windows the bug is merely annoying, but on MacOS the bug makes OutlineView's drag-and-drop feature unusable.
> To reproduce:
> 1) One place in the IDE where the OutlineView is used is the "Search Results" tab. While this node tree doesn't really support reordering results, the OutlineView can still be used to exhibit the bug. Open some project, right-click the project node, click "Find..." and search for something that will bring up multiple (~5 or more) results.
> 2) Drag the first result row a couple of rows down, holding the left mouse button down to observe the bug. If the bug does not appear, let go and try again until it does. On Windows, you may need to start dragging from the lower part of the row you're trying to drag, and the dragged mouse cursor may need to exit onto the next row within a certain time period from when the left mouse button was pressed. On MacOS, the bug happens every time, regardless of how long I wait hovering over the original row while holding down the mouse button before beginning to drag across other rows.
> Because the bug appears in both Windows and MacOS, albeit more rarely on Windows, I suspect a fix that works in Windows would also fix the issue on MacOS. Because of the timing aspect when reproducing the bug in Windows, there appears to be some kind of race condition. Maybe there's some kind of "selection rectangle" concept that doesn't get properly turned off in the OutlineView.
> The problem is in JTable (see https://stackoverflow.com/questions/5969258/how-to-make-jtable-click-on-unselected-do-a-drag-instead-of-a-select ), but can be worked around in OutlineView.
> (This report is a revival of the old BugZilla issue https://bz.apache.org/netbeans/show_bug.cgi?id=230690 )



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists