[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Bug#20871: scroll wheel binding IFRAME?
From:       Peter Silva <peter () basquette ! homeip ! net>
Date:       2001-03-01 2:23:56
[Download RAW message or body]

Tobias Anton wrote:

> On Saturday 24 February 2001 19:14, peter@basquette.homeip.net wrote:
> 
>> Package: konqueror
>> Version: KDE 2.1.0 Beta 2
>> Severity: wishlist
>> Installed from:    Mandrake RPMs
>> Compiler:          Not Specified
>> OS:                Linux
>> OS/Compiler notes: fully patched Mdk 7.2
>> 
>> When there is an IFRAME in a page, and
>> the mouse is over it, if one uses a mouse
>> wheel to scroll, the first movement of
>> the wheel selects the IFRAME, and the
>> later events are given to the IFRAME, rather
>> than enclosing page.
>> 
>> so, scrolling with the arrow keys works, but when the mouse happens to be
>> over a b anner ad,  mouse wheel scrolling
>> scrolls the ad, instead of the page.
> 
> I'd call this a feature: although IFRAMEs are often used for banner ads, you 
> can put complete scrollable pages into the IFRAME.
> We deliberately have set the focus policy of the IFRAME, exactly of the 
> KHTMLView to WheelFocus, which makes it grab focus when the wheel is turned 
> over it.

Why is the wheel mouse action different from the keyboard binding?
I would have expected both to scroll the same way, but the mouse
wheel grabs focus while the keys do not.
 

> It's a bit hard to decide what to do here - imagine one uses the iframe to 
> display a large page floated in some frame-like decorations. He'd report the 
> bug that IFRAMEs are not scrollable!?
> 

would it be reasonable, in this case, he would click (with a mouse button) to 
get focus, then scroll with the wheel...  (ie.  like "click to focus" wm policy.)

> Maybe we should propagate the event to the parent if there's no scrolling 
> possible in the IFRAME?
> 
> How does IE behave?
> 

mozilla does it ok.  netscape 4.x doesn't understand wheel mice.
I don't know about IE, I have no platform to run such a thing on :-)


-- 
peter@basquette.homeip.net  -- some guy in his house with a couple of 
linux boxes.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic