`interact_pointer_pos` incorrect behavior or documentation
- Dominant language
- Rust
- Stars
- 30.6k
- Forks
- 2.1k
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 72
Description
**Describe the bug**
The documentation of `interact_pointer_pos` says:
"Where the pointer (mouse/touch) were when this widget was clicked or dragged."
I interpret that as the start point of the dragging/click. However, it seems like it is the current position of the mouse.
Ideally (for me), it should be as described as I need to get the exact start position of a drag and, since, it requires a bit of dragging to determine that drag happens, I think that corresponds to return `press_origin`?
If it behaves as expected, one should probably rephrase the documentation.
**To Reproduce**
Steps to reproduce the behavior:
1. Add something like
``` rust
if let Some(pp) = response.interact_pointer_pos() {
dbg!(pp);
}
```
2. Click and drag.
**Expected behavior**
The value should not change (if the doc is correct).
**Screenshots**
**Desktop (please complete the following information):**
- OS:
- Browser
- Version
**Smartphone (please complete the following information):**
- Device:
- OS:
- Browser
- Version
**Additional context**
Contributor guide
Research direction
Start with the `interact_pointer_pos` documentation and reproduce the reported `dbg!` behavior while clicking and dragging. Compare the observed value with the documented meaning and the mentioned `press_origin`; done when the behavior or wording clearly matches the intended semantics.
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
- Needs clarification
- Newbie friendliness
- 35/100