[Bugfix] automation.scroll() ignores the x-coordinate of its position argument #317
Labels
No labels
Alpha Release Requirement
Bugfix
Demo Target
Documentation
Major Feature
Minor Feature
priority:tier1-active
priority:tier2-foundation
priority:tier3-future
priority:tier4-deferred
Refactoring & Cleanup
system:animation
system:documentation
system:grid
system:input
system:performance
system:procgen
system:python-binding
system:rendering
system:ui-hierarchy
Tiny Feature
workflow:blocked
workflow:needs-benchmark
workflow:needs-documentation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
john/McRogueFace#317
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found during the #314 F15 docstring-accuracy verify pass.
In
src/McRFPy_Automation.cpp,scroll(clicks, pos=None)resolves a position viaPyPosition_ParseIntbut the call toinjectMouseEvent(sf::Event::MouseWheelScrolled, clicks, y)passesclicksas the x argument andyas the y argument — the resolved x coordinate ofposis never used. So scrolling "at a position" only honors the y of that position.Impact:
automation.scroll(n, pos=(x, y))behaves as if x were ignored. Either the x should be forwarded to the injected event, or the API should not accept an x at all.The docstring has been updated (in the F15 accuracy pass) to note that x is currently ignored; this issue tracks the underlying code fix.
Suggested labels:
Bugfix,system:input,priority:tier3-future. (Apply manually — Gitea MCP label bug.)Refs #314