Ronald Florence wrote:

> Angus Leeming <[EMAIL PROTECTED]> writes:
> 
>> You should find that the xforms frontend does have a more
>> manageable scrolling behaviour.
> 
> I've used LyX from before version 1.0, with xforms and qt frontends,
> and don't remember the scrolling ever being satisfactory.  I wish it
> were better, but have from necessity developed -- as I suspect other
> LyX users have -- workarounds.  Why can't the scrolling be fixed? 
> It would be very useful to be able to mark large blocks of text with
> the mouse.

It was fixed only in the last major release, 1.3.x, and only in the 
xforms frontend. The fix is trivial (for Qt too) and requires that 
LyX responds only to a subset of mouse events from the underlying 
X11, MacOS or Win32 graphics libraries. In the xforms frontend we use 
a timer, so:
        // The timer runs for 200ms
        static Timer timer(200);
        if (timer.running())
                return;
        timer.start();
        dispatch(mouse_event_to_the_lyx_core);

This could go in, almost as is, to the mouseEventHandler in 
QContentPane.C. Feel free to try ;-)

-- 
Angus

Reply via email to