Bug 86224 - overflow: scroll; Click in field should make scrollwheel scroll this field
Summary: overflow: scroll; Click in field should make scrollwheel scroll this field
Status: RESOLVED DUPLICATE of bug 121065
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: 3.2.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-29 12:40 UTC by Frederik Holljen
Modified: 2007-09-26 10:48 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
support for scrolling nearest scrollable layer (3.01 KB, patch)
2004-08-11 20:15 UTC, Leo Savernik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frederik Holljen 2004-07-29 12:40:03 UTC
Version:           3.2.2 (using KDE 3.2.3,  (testing/unstable))
Compiler:          gcc version 3.3.4 (Debian 1:3.3.4-4)
OS:                Linux (i686) release 2.4.18-bf2.4

I have a page with div with fixed height and overflow set to scroll. Like this:

div
{
    height: 200px;
    overflow: scroll;
}

When an overflow happens you get a scrollbar. All good! :)
But now, I want to scroll the contents inside the div with my mousewheel. Most browsers (opera, IE) allow this if you click inside the field. If you don't click inside the whole page scrolls. Konqueror scrolls the whole page even if you click inside first.
Comment 1 Leo Savernik 2004-08-11 15:39:18 UTC
As fate would have it, I tried to tackle the bug two weeks ago. However, I aimed at a smarter solution that unfortunately turned out not to work because of event interdependence problems.

However, your simple proposition should work at any rate.
Comment 2 Leo Savernik 2004-08-11 20:15:26 UTC
Created attachment 7079 [details]
support for scrolling nearest scrollable layer

This makes the nearest scrollable layer from the most recent click location
scroll.
Comment 3 Germain Garand 2005-10-30 01:04:19 UTC
leo: did you forgot about that patch or were there remaining issues or ...?
Comment 4 Leo Savernik 2005-11-01 20:12:14 UTC
germain: Yes I've forgotten. Up to now I didn't even know that I've written any such patch.

I remember now some issues wrt to scrolling of rendered layers (overflow:scroll/auto) and native layers (frame/iframe/object). The scrolling event applied to the native layers immediately, but to the rendered ones delayed by one event loop run. I have never found out why this is the case.

Another issue was that it uses the position of the caret to determine focus, which doesn't work out too well on initial page loading.

So I think to make it usable is to allow all rendered layers to become focusable, and regard the focus only (not the caret).
Comment 5 Mitch 74 2005-12-19 15:15:35 UTC
I can verify this bug with a fixed size DIV and overflow: auto; also, the DIV won't scroll when clicking a link such as:
<a href="page.html#anchor">. I think it can be related?
Comment 6 Leo Savernik 2005-12-19 18:59:43 UTC
Am Montag, 19. Dezember 2005 15:15 schrieb Mitch 74:
> I think it can be related?


This is not directly related. However, to tackle this bug and yours, a common 
interface for scrolling layers (including native widgets like iframes, 
objects, khtmlview) would be needed.
Comment 7 Didier Raboud 2006-02-08 14:23:51 UTC
To be noted maybe : Mozilla Firefox (Gecko) resolved it's similar bug with 1.5 : https://bugzilla.mozilla.org/show_bug.cgi?id=97283
Comment 8 Mitch 74 2006-02-20 10:28:47 UTC
Actually, it was fixed in trunk long before that, but there was no release shipped with it and they didn't want to back-port it to the FF 1.0 releases. Others like Mandriva seem to have done so, as my Mandriva 2006 Firefox 1.0.6 build does not exhibit this bug.
Comment 9 Mitch 74 2006-02-22 11:35:10 UTC
I stand corrected: my Mandriva 2006 Firefox 1.0.6 build <b>does</b> exhibit this bug.
Comment 10 Thomas Brix Larsen 2006-05-22 02:47:43 UTC
There is also the possibly related problem of the div not scrolling along when one selects text.
Comment 11 Germain Garand 2007-01-24 16:23:20 UTC
not a perfect duplicate as there is no need to click in the container in #121065  implementation, but functionality is basically the same

*** This bug has been marked as a duplicate of 121065 ***
Comment 12 tmeedend 2007-09-26 10:48:01 UTC
this is a very annoying bug.
I can't use the google reader mousewheel fonctionality when I read my feeds :(