Re: jumpy scrolling on the Mac

[email protected] Tue, 21 May 2024 09:37:03 -0500
Newsgroups gmane.comp.lib.fox-toolkit.user
Message-ID <[email protected]>
On 2024-05-21 08:05, John Selverian wrote:
> I added a repaint timer. It gets called but I don’t notice any
> difference, it is still jumpy.
> 
> I also tried Adie and see the same problem, i.e., jumpy text.
> 
> I also see this problem in an FXTable not just FXList.

That is important to know, because it would rule out issues specific
to your program.  Rather, it seems to have to do with the XQuartz
interface then.

> If I scroll using the ‘thumb’ in the scroll bar instead of the
> mousewheel it looks fine.

The wheel performs some animation, redrawing the widget at inter-
mediate positions in order to provide visual clues of the direction of
motion.

All this is done via FXScrollBar [a wheel-rotation inside the widget
is typically routed to either vertical scrollbar [default], or 
horizontal
scrollbar [if vertical scrolling is disabled].

The wheel animation will be disabled if SCROLLBAR_WHEELJUMP is passed;
this will skip the intermediate states and jump straight to the
desired scroll position.  You could try that.

Current animated scrolling is "hardwired" to a time-interval of
1/60 (16,666,666 nanoseconds), and eight increments, i.e. you'll
reach the desired scroll position in 8 frame times.

Implicit in this assumption is that we can actually perform this
act of drawing in one frame time.

   -- JVZ




_______________________________________________
Foxgui-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/foxgui-users