Mudlet / Mudlet

⚔️ A cross-platform, open source, and super fast MUD client with scripting in Lua
https://mudlet.org
GNU General Public License v2.0
736 stars 268 forks source link

Split screen scrollback in miniconsole jumping more lines than displayed #4771

Closed bduza closed 2 weeks ago

bduza commented 3 years ago

Brief summary of issue / Description of requested feature:

I have created a small console (4 lines high) to display room descriptions. When scrolling back to read an entire room description, each step of the scrolling jumps more lines than the default 50/50 split can display. Dragging the split down as far as it will go does alleviate this, but it seems unintuitive behaviour.

Steps to reproduce the issue / Reasons for adding feature:

  testcontainer = Adjustable.Container:new({name = 'testcontainer'})
  description =
    Geyser.MiniConsole:new(
      {name = 'description', x = 0, y = 0, width = '100%', height = '4c', --height is important
        color = 'black', fontSize = 10, autoWrap = true,},
      testcontainer
    )
  1. Echo a decent sized chunk of text to the console, so that there are significantly more than 4 lines in the buffer.
  2. Try to scroll back and read it.
  3. Drag the split down as far as it will go - can now read the entire passage, and in fact it appears that this is the size used to calculate the amount that is scrolled, regardless of where the split is.

Error output / Expected result of feature

The number of lines per scroll increment should not exceed the amount the top half of the split can display.

Extra information, such as Mudlet version, operating system and ideas for how to solve / implement:

Mudlet 4.10.1, Windows 10

Edru2 commented 3 years ago

As a workaround for now you can also press control during scrolling to only scroll one line in the latest PTB. see #4445

ZookaOnGit commented 2 weeks ago

workaround supplied, no response, no traction still an issue? reopen if so