Issue #9246: Input fields and context menus may scroll workspace out of view

28 views
Skip to first unread message
Message has been deleted

Shawn Wallace

unread,
Aug 12, 2025, 2:56:46 PMAug 12
to Blockly
We were running into issue #9246 so I took a look at the source. There's an example configuration in the thread that recreates the issue we have. Here's a possible fix.

In focus_manager.ts -> takeEphemeralFocus(), line 442, add a preventScroll: true.

  focusableElement.focus(({ preventScroll: true }));

That fixes it for me. I'm not sure if that affects any of the other logic in the focus manager, but it seems like parent container scrolling is unreliable in all three browsers.

Shawn

Ben Henning

unread,
Aug 12, 2025, 4:56:17 PMAug 12
to blo...@googlegroups.com
Hi Shawn,

Thanks for pointing this out. We actually happen to have a fix in review right now for this issue (see https://github.com/google/blockly/pull/9291) which will go out in the next dot release of Blockly v12 (which will likely be version 12.3.0), and that should be available in a few weeks.

Regards,
Ben

Shawn Wallace 

Unruly Studios

Cell: (401) 835-7550


  

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/blockly/CAAvYvfYuAj8fe4hPqtNszgNG%3DkZNTRPjhTx4LJy7UZZqM6XhHA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages