RPTools/maptool

[Bug]: Scrolling in Edit Token dialog is slow for bars and states

Closed this issue · 0 comments

Describe the Bug

When a campaign has lots of bars defined, they exceed the height of the Edit Token dialog and need to scroll. This is fine, but the scrolling is unreasonably slow.

The problem is especially bad in the 1.18 releases since the bars are stacked in a single column, resulting in much more vertical space that needs to be scrolled.

The same problem exists when there are lots of states. But since those pack much more tightly in the Edit Token dialog, this is more of an edge case than a real problem.

To Reproduce

  1. Start a new campaign.
  2. Open the campaign properties, and replicate the default Health bar about a dozen times.
  3. Add a token to the map and double-click it to edit.
  4. Head to the State tab (States & Bars in 1.18). You should see a scroll bar.
  5. Attempt to scroll with the mouse wheel. Notice how it takes a lot of action on the wheel to even reveal one more row of bars.

Expected Behaviour

Scrolling should feel pretty natural. E.g., a single tick of the mouse wheel should show roughly an entire row of bars.

Screenshots

No response

MapTool Info

1.17.1, 1.18.1

Desktop

Linux Mint 22.1

Additional Context

No response