emilk / emilk/egui

Not able to open context menu in drag and drop demo by right-click

Open
#2,471 2 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
30.6k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
72

Description

**Describe the bug**
I am using code inspired by the drag and drop demo, and since updating from egui `0.19.0` to the most recent version, the context menu of the items seems not to work as expected anymore. I re-created this on [egui.rs](https://www.egui.rs/) (accessed 2022-12-17). When right-clicking on `Item B` (see video below, mouse pointer unfortunately not visible in the recording), a context menu with a `Remove` button as per https://github.com/emilk/egui/blob/6ae4bc486b2608212f5fc8453f5aa7e5106853f8/crates/egui_demo_lib/src/demo/drag_and_drop.rs#L135 should appear, but instead the `New Item` option appears.

[Screencast from 2022-12-17 10-56-00.webm](https://user-images.githubusercontent.com/54188922/208236399-369d7ba4-987c-46f5-b620-3072918b95f4.webm)

**To Reproduce**
Steps to reproduce the behavior:
1. Go to https://www.egui.rs/
2. Open the drag and drop demo
3. Right click on any of the items

Contributor guide

Open the contributing guide

Research direction

Start at crates/egui_demo_lib/src/demo/drag_and_drop.rs around the referenced line, then reproduce the behavior in the drag and drop demo at egui.rs by right-clicking an item. Done means an item's context menu shows Remove instead of New Item, while the New Item option remains available in its intended context.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.