Welcome to TalkGraphics.com
Results 1 to 10 of 12

Hybrid View

  1. #1

    Default MouseDown behavior

    To understand mousedown behavior in a simplistic dropdown menu, I created a small model. (See attached .web file.)
    • All buttons and dropdowns have 1) mouseOff, 2) mouseOver, and 3) mouseDown states
    • All links = javascript:;

    I note the following behaviors:
    • The button 2 (no dropdown) can be pressed any number of times and the mouseDown state functions properly.
    • The button 1 (with dropdown) can be pressed exactly once and the mouseDown state functions properly. If I press the button multiple times, with the cursor in exactly the same position (no hand/mouse movement), only the first click behaves as expected. If I press button 2 multiple times, but ensure that the cursor moves before each click (even if only slightly), then the mouseDown function works properly.

    Why does button 2 (on popup layer 'btn1') behave differently?
    What are your observations?
    Attached Files Attached Files

  2. #2
    Join Date
    Aug 2000
    Location
    Prince Edward Island, Canada --- The land of lawn tractors
    Posts
    5,389

    Default Re: MouseDown behavior

    I see the behavior you are highlighting and I don't understand the difference either. That said, in the real world (the real 'virtual' world of the internet ) your users are unlikely to experience the anomoly. No? It seems unlikely that folks will keep a mouse stationary and click, click, click...

    It is indeed a curious behaviour and probably worth bringing in case it relates to some unintentional bug.

    Regards, Ross

  3. #3
    Join Date
    Oct 2006
    Location
    Tampa Bay, Florida
    Posts
    1,341

    Default Re: MouseDown behavior

    I've noticed this behavior before. You have to move the cursor on the button to make it work. But why would anyone be clicking on button 1 wouldn't they be clicking on 1A 1B or 1C?

  4. #4

    Default Re: MouseDown behavior

    I understand that it may not matter in the least to a user, but thought it would be 1) personally interesting to know why, and 2) to inform the developers that there is, at least, an apparent behavioral inconsistency.

    covoxer?

  5. #5
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: MouseDown behavior

    That's because after click the popup layer is closed. As you still over the button1 it's immediately popped up again but you don't trigger mouseover state to the button1 object placed on the popup layer.
    Try attached design instead.
    Attached Files Attached Files
    John.

  6. #6

    Default Re: MouseDown behavior

    Thanks, John, for explaining how it works and for offering an alternative solution.

 

 

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
  •