Results 1 to 5 of 5

Thread: Firefox, scroll wheels, and onmouseover

  1. #1
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default Firefox, scroll wheels, and onmouseover

    It recently came to my attention that, should the user's pointer come onto an element by the use of the mouse wheel in Firefox, the onmouseover event doesn't fire until the user moves said pointer. Just out of curiosity, is there any way around this?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Isn't that annoying? I doubt that the obvious course (using the onscroll event coupled with a mouse coordinate check against the position and size of the element in question) would work as FF is also sketchy on detecting the onscroll event, if memory serves. Even if it did work, it would be quite a piece of coding. Depending upon how 'mission critical' this is, it might be worth investigating as FF does support the onscroll in some situations, I think. I'm remembering this all vaguely from Quirksmode.org's events section and bitter personal experience. I think I ended up, in my particular instance, finding some other event to hang my hat on in FF.

    To that end, is there something concrete involved in this exercise and if so, could you provide a link to it?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    No, nothing concrete. I just noticed it, and wondered for possible future reference if it were bypassable. I considered adding "without rewriting the event handler" into that post, but didn't. Luckily, as it happens
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Just thinking about a similar situation I ran across rather recently. I was modding up the Switch Menu II script here at DD. Unlike the the original, it doesn't collapse previous. That's what the OP wanted. The script initializes each header onmouseover to prepare it for the onclick event. With those modifications added, it could happen that upon collapse of a previous menu and the expansion of the current, the mouse would be over a third header. FF would not detect this fact until the mouse was actually moved (IE was fine with it). In that case I was able to use the onmousedown event to compensate.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I thought I'd better resurrect this ancient thread to point out that this is fixed in FX1.5.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •