Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    event.button in FF

    My scenario is this: When the user clicks on an element in the HTML document and then drags the mouse, I need to perform certain custom actions. Hence I need to determine what button the user has clicked. This is possible using event.button. In IE, it returns 0 when the mouse is moved, and 1 when the mouse is moved with the left button pressed.

    But not so in FF. FF returns 0 when the mouse is moved, but it also returns 0 when the mouse is moved with the left button pressed. Why is this so? Is there no way to differentiate between a normal mousemove and a drag in FF?
    Last edited by topcoder; 08-02-2006 at 01:10 PM.

  • #2
    New Coder
    Join Date
    Jun 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Anyone there?

    Is there no solution to this? Or is something wrong on my side?

  • #3
    Regular Coder RexxCrow's Avatar
    Join Date
    Jul 2006
    Location
    California
    Posts
    275
    Thanks
    6
    Thanked 2 Times in 2 Posts


  •  

    Posting Permissions

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