Skip to content

scroll: run panBy sync from drawSections#15636

Merged
caolanm merged 1 commit intomainfrom
private/eszkadev/fix-scroll-scheduling
Apr 23, 2026
Merged

scroll: run panBy sync from drawSections#15636
caolanm merged 1 commit intomainfrom
private/eszkadev/fix-scroll-scheduling

Conversation

@eszkadev
Copy link
Copy Markdown
Contributor

  • reverted code from commit 623e2f5 "Scroll Section: Move move event into layouting tasks." It even mention: This will change in the future but for now, move event modifies map css prpoerty.

  • fixes regression after commit 5a672a7 "canvas: flush LayoutingService before canvas render"

  • makes order of processing again good for current frame: Original order (draw -> flush):

    1. drawSections() - ScrollSection queues panBy
    2. flushLayoutingTasks() - runs panBy synchronously

    Currently we flush tasks first, then will execute doMove() in
    ScrollSection which appends new task

- reverted code from commit 623e2f5
  "Scroll Section: Move move event into layouting tasks."
  It even mention: This will change in the future but for now, move event modifies map css prpoerty.
- fixes regression after commit 5a672a7
  "canvas: flush LayoutingService before canvas render"
- makes order of processing again good for current frame:
  Original order (draw -> flush):
  1. drawSections() - ScrollSection queues panBy
  2. flushLayoutingTasks() - runs panBy synchronously

  Currently we flush tasks first, then will execute doMove() in
  ScrollSection which appends new task

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I59937a918ef3a54c540a0c7a554720d9dea6c030
@eszkadev eszkadev force-pushed the private/eszkadev/fix-scroll-scheduling branch from a59f8f6 to ee9aa2f Compare April 23, 2026 06:46
@eszkadev eszkadev requested review from caolanm and gokaysatir April 23, 2026 07:13
Copy link
Copy Markdown
Contributor

@gokaysatir gokaysatir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thanks for the fix @eszkadev.

@github-project-automation github-project-automation Bot moved this from To Review to To Test in Collabora Online Apr 23, 2026
@caolanm caolanm merged commit b6dc123 into main Apr 23, 2026
13 of 14 checks passed
@caolanm caolanm deleted the private/eszkadev/fix-scroll-scheduling branch April 23, 2026 10:13
@github-project-automation github-project-automation Bot moved this from To Test to Done in Collabora Online Apr 23, 2026
@timar
Copy link
Copy Markdown
Member

timar commented Apr 23, 2026

pushed to cogerrit, too.

@caolanm
Copy link
Copy Markdown
Contributor

caolanm commented Apr 23, 2026

This issue is present in co-25.04 branch too I believe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants