lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev [PATCH 2.8.3.dev10] Scrollbar doubleclick support


From: Leonid Pauzner
Subject: Re: lynx-dev [PATCH 2.8.3.dev10] Scrollbar doubleclick support
Date: Thu, 21 Oct 1999 03:47:27 +0400 (MSD)

20-Oct-99 03:34 Ilya Zakharevich wrote:
> Somehow my patch of August 10 was not applied.  Here I repeat it

Are you sure with that?

#ifdefing with DISP_PARTIAL could be not enough:
there is `display_partial' flag which may be OFF.
It is ON when the loading is in progress
and 'partial mode' was not disabled by user via lynx.cfg
or commandline -partial taggle.


> --- ./src/LYStrings.c-presb   Wed Sep 29 06:40:38 1999
> +++ ./src/LYStrings.c Wed Oct 20 03:20:52 1999
> @@ -315,6 +315,17 @@ PRIVATE int set_clicked_link ARGS4(
>           return INSERT_KEY;
>       if (y >= h)
>           return REMOVE_KEY;
> +#ifdef DISP_PARTIAL                  /* Newline is not defined otherwise */
> +     if (clicks >= 2) {
           ^^^^^^^^^^^^^isn't it
                               (display_partial && clicks >=2)  ?
> +         double frac = (1. * y)/(h - 1);
> +         int l = HText_getNumOfLines() + 1;  /* NOL() off by one? */
> +
> +         l -= display_lines;
> +         if (l > 0)
> +             Newline = frac * l + 1 + 0.5;
> +         return LYReverseKeymap(LYK_DO_NOTHING);
> +     }
> +#endif
>       if (y < LYsb_begin)
>           return PGUP;
>       if (y >= LYsb_end)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]