drawio icon indicating copy to clipboard operation
drawio copied to clipboard

[BUG] Focus often goes to the element behind the top element (generally after pasting an element)

Open Totalus opened this issue 1 year ago • 1 comments

Preflight Checklist

  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Describe the bug I often find myself selecting the wrong item because when I hover the element I want to select, the focus goes to the item behind instead. This happens a lot after pasting an element.

To Reproduce

  1. Create a new blank canvas
  2. Add an element (ex: rounded rectangle)
  3. Copy the element
  4. Paste the element
  5. Hover your mouse over the new pasted element
  6. You should observe that the focus often goes to the element behind.

This does not happen systematically, but it does most of the time, so it is not too hard to reproduce. I've also seen it happening in other moments, not only after pasting an item, but less often.

Expected behavior I expect the focus to be placed on the top element when I hover it.

Screenshots

What I expect: the focus stays on the top element so long that my cursor is on top of it. 2024-07-17-15-18-13

What actually happens: when I hover the top element at the level of the edge of the element behind it, it focuses on the element behind even though my cursor is hovering the top element. 2024-07-17-15-17-48

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io version 4.7.1

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome 126.0.6478.57 64 bits, I've also observed the problem on Vivaldi browser and the windows app previously

Smartphone (please complete the following information): Not tested on smartphone

I tested the problem in incognito/private mode with all browser extensions switched off, write "yes" below: YES

Totalus avatar Jul 17 '24 19:07 Totalus

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.

github-actions[bot] avatar Mar 25 '25 11:03 github-actions[bot]