Skip to content

Line-based scrollbars #77

@Aurumaker72

Description

@Aurumaker72

Scrollbars are currently based on a 0-1 scroll value.

This is ridiculously bad for many reasons, the main one being loss of precision for big ratios.

A scrollbar should have three parameters instead, similar to how Windows does it:

unit: integer, -- current unit index
units: integer, -- total unit count
unit_size: integer, -- size of one unit in screen pixels

Where "unit" usually just means line. I propose unit instead of line because we also have horizontal scrollbars which scroll by character, not line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions