building inconsistent mouse-event%
Open
Nobody has claimed this yet.
- Dominant language
- Racket
- Stars
- 68
- Forks
- 82
- PR merge metrics
- No merged PRs in 30d
Description
It is possible to build an inconsistent mouse event:
> (define ev (new mouse-event% [event-type 'left-down]))
> (send ev get-left-down)
#f
As this has caused me a bit of a headache, I'm willing to fix this, but before doing so I'm checking with you if there may be any downside with such a fix, like backward compatibility---although it may be considered this a bug I guess.
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 locating the mouse-event% entry point and reproducing the event-type 'left-down' example with get-left-down. Determine the expected consistency between the event type and getter, then add coverage showing the intended behavior and verify the example no longer produces an inconsistent event.
Written by the indexing model from the issue text.
Assessment
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100