Tux Machines

GNOME: Smoother Scrolling of Text Views

Posted by Roy Schestowitz on Feb 08, 2023

=> cTune – ncurses based internet radio player | today's leftovers

When working on GTK 4, special care was taken to ensure that most of a GtkTextView‘s content could be rendered without GL program changes and maximal use of glDrawArrays() with vertices from a VBO.

That goes a long way towards making smooth scrolling.

In recent releases, GTK gained support for scrolling using more precise scroll units. On macOS with Apple touchpads, for example, that might map physical distance to a certain number of logical pixels within the application.

If you’re at 2x scaling, you might get values from the input system with “half pixel” values (e.g. .5) since that would map just fine to the physical pixel boundary of the underlying display server.

Read on

=> ↺ Read On: Gnome

=> gemini.tuxmachines.org

Proxy Information
Original URL
gemini://gemini.tuxmachines.org/n/2023/02/08/GNOME_Smoother_Scrolling_of_Text_Views.gmi
Status Code
Success (20)
Meta
text/gemini;lang=en-GB
Capsule Response Time
139.416084 milliseconds
Gemini-to-HTML Time
0.380869 milliseconds

This content has been proxied by September (ba2dc).