Tree scrolling issue
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.8k
- Forks
- 717
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 3
Description
Originally by Codescriptor
Prerequisites:
Tree contains lot of items and has a vertical scroll. Tree implements ItemClickListener interface which selects item if right mouse button was clicked.
-Steps to reproduce:*
- Scroll to the first item.
- Select first item or leave tree without selected value (this doesn't make a difference).
- Scroll to the middle or end of tree.
- Make right mouse click on some item.
-Result:*
- Tree scrolls to the top.
- Tree scrolls to the selected item.
- Tree selects the item.
-Expected result:*
- Tree selects the item after right mouse click without "jumping".
'''
Additional info:'''
There are closed tickets for previous versions of Vaadin about the same issue (like #12618). But it still can be reproduced in version 7.5.9.
Imported from https://dev.vaadin.com/ issue #19333
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the right-click behavior in a Vaadin 7.5.9 tree containing enough items to scroll, following the listed steps. Trace the tree's ItemClickListener handling and verify that selecting an item with the right mouse button no longer jumps the tree to the top or selected item.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100