# Mouse wheel scrolling doesn't work in Pane inside ExpressionCell

Essentially what the title says - Consider the following example:

ExpressionCell[Pane[
200!,
ImageSize -> {200, 200},
Scrollbars -> {False, Automatic}
]]


When trying to scroll around in the pane using the mouse wheel, the whole notebook is scrolled through instead. Manually grabbing the scrollbar with the cursor to scroll still works. Also, removing the ExpressionCell returns the behavior to normal.

Is there any option or similar that I am missing? Scrolling using the scrollbar is rather cumbersome… Unfortunately, I need the ExpressionCell to be there, so I am in need for another workaround.

• If you absolutely need it in an inline cell, then no. That should only happen with this example thanks to the Shift+Enter evaluation. If you try your example with an " // CellPrint" appended to the end, it should behave as desired. – ihojnicki Jan 27 '20 at 0:50
• @ihojnicki no inline cell scrolling? What’s behind that restriction? – b3m2a1 Jan 27 '20 at 0:54
• @ihojnicki thanks for the definitive answer once again. Unfortunately, I think I do need the inline cell, but I guess I'll have to recheck for alternatives... (I am using the inline cell as storage for TaggingRules in order to have front-end state variables that can be dynamically created. As far as I am aware, this is not doable with DynamicModule variables, since the front-end can't reliably interact with list variables, right? Using an inline cell instead of the output cell itself allows easy copying of the whole thing and enables multiple such expressions in a single output cell) – Lukas Lang Jan 27 '20 at 7:44
• @b3m2a1, you can scroll it using the mouse wheel once the inline cell has been activated. I haven't gone digging through the code to see why that is the case, but it could simply be a bug. – ihojnicki Jan 27 '20 at 14:03
• @LukasLang, list variables? I think I would need to see a small example to comment further. – ihojnicki Jan 27 '20 at 14:05