vaadin / vaadin/framework

Tree scrolling issue

Open
#7,342 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Stale v7
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:*

  1. Scroll to the first item.
  2. Select first item or leave tree without selected value (this doesn't make a difference).
  3. Scroll to the middle or end of tree.
  4. Make right mouse click on some item.

-Result:*

  1. Tree scrolls to the top.
  2. Tree scrolls to the selected item.
  3. Tree selects the item.

-Expected result:*

  1. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.