Setting focus on div with Mozilla

Discussion in 'Firefox' started by Arne, Jul 17, 2005.

  1. Arne

    Arne Guest

    During testing <div style="overflow:auto;"> in CSS I noticed the
    mousewheel would work in Mozilla only after I made a <a href="#">some
    text</a> link and clicked on that, within the div.

    It appears as if Mozilla needs to have the focus set on that div in
    order for the mousewheel to work. That's all that link does. The
    mousewheel works perfectly in IE without the link. It scrolls the div
    even if there is a scrollbar on the page.

    Why am testing? That's because there is sites 'out there' that use
    scrolling div's and I discovered that I could not use my mousewheel to
    scroll when I used Mozilla. In IE it works by placing the cursor
    anywhere inside the div.

    With the link inside the div the scrolling works on IE even for
    keyboard users, even if it may be a nightmare the keys takes you thru
    the links and when the link in the div is focused you can scroll it
    with the arrow keys.

    Why does that not work in other browsers and is there a way (others
    than I described abow) to make it work? But remember now, I know about
    the "usability no-no" but I would like to know since I would like to
    use the scrolling on sites where they use the scrolling div's.

    Is there any reason (according to standard or something else) why
    Mozilla can't scroll without setting the focus, and is there any other
    way to do it. If the "usability no-no" is the reason why standard
    compliant (is it the right word?) browser don't support it, then why
    support the scrolling divs at all?


    Top posters will be ignored. Quote the part you
    are replying to, no more and no less! And don't
    quote signatures, thank you.
    Arne, Jul 17, 2005
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mike

    excel #DIV/0! ?

    Mike, Aug 18, 2003, in forum: Computer Support
    Monsignor Larville Jones MD
    Aug 19, 2003
  2. ECLiPSE 2002

    Help with Div X5 format

    ECLiPSE 2002, Oct 23, 2003, in forum: Computer Support
    ECLiPSE 2002
    Oct 25, 2003
  3. Catherine Jo Morgan

    any manual focus cameras easy to focus?

    Catherine Jo Morgan, Nov 4, 2003, in forum: Digital Photography
    Samuel Paik
    Nov 5, 2003
  4. gpw

    div nesting in Firefox

    gpw, Sep 5, 2006, in forum: Firefox
  5. peace2007

    Display Banner in DIV control

    peace2007, Sep 25, 2007, in forum: Software
    Sep 25, 2007

Share This Page