Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Clicking on empty space behavior is unexpected in 0.217.0-5 #1075

@steelbrain

Description

@steelbrain

Prerequisites

Description

Clicking on empty space about tree view items has two different behaviors:

  • If it's the active item, it's toggled (for dirs)
  • If it's text width is equal to or less than the name of longest time, it's selected and toggled as expected
  • If it's text width is greater than the longest name and isn't the active item, clicking on empty space in front of it has zero effect

Steps to Reproduce

  1. Open any repository
  2. Click on the empty space in front of the name of a dir/file that's not active and is the longest

Expected behavior: [What you expect to happen]

The item is selected or toggled regardless

Actual behavior: [What actually happens]

Mentioned above

Reproduces how often: [What percentage of the time does it reproduce?]

Everytime

Versions

Atom    : 1.17.0-beta3
Electron: 1.3.14
Chrome  : 52.0.2743.82
Node    : 6.5.0

Tree-View v0.217.0-5

Additional Information

I'm on macOS if it matters, also here's a gif

kapture 2017-04-20 at 22 54 09

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions