microsoft / microsoft/pxt

Please add support for negative image scroll

Open
#10,272 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.3k
Forks
641
Avg merge
12h 4m
Merged PRs (30d)
57

Description

Feature request template

Is your feature request related to a problem? Please describe.
Currently the block to scroll an image with negative parameter does not work in the board, but works on make code simulator.
Seems the underlying source code has a fourth parameter that needs to be used to specify the starting position when the scrolling is negative, as mentioned here: https://github.com/lancaster-university/microbit-dal/issues/351

Better support is currently pending on microbit-dal PR opened here since 2022:
https://github.com/lancaster-university/microbit-dal/pull/485

Would be nice to get those folks to wake up a review a couple of PRs dangling there.

Describe the solution you'd like
I would like the scrolling image block to either support the negative scrolling automatically or allow providing the starting position.

Describe alternatives you've considered
The alternatives are to use custom functions and implement loops to do the same

Additional context
None, rather than the fact the simulator works perfectly but in the physical board it doesn't
This was already reported here:
https://github.com/microsoft/pxt/issues/3485

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository file or test is named. Start by reviewing the linked microbit-dal issue and PR, then locate the scrolling image block implementation and its board path; done means negative image scrolling works on the physical board as it does in the simulator, with the intended starting-position behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
embedded-iot
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.