Αυτός ο ιστότοπος θα έχει περιορισμένη λειτουργικότητα, όσο εκτελούμε εργασίες συντήρησης για να βελτιώσουμε την εμπειρία σας. Αν ένα άρθρο δεν επιλύει το ζήτημά σας και θέλετε να κάνετε μια ερώτηση, η κοινότητα υποστήριξής μας είναι έτοιμη να σας βοηθήσει στο Twitter (@FirefoxSupport) και στο Reddit (/r/firefox).

Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Μάθετε περισσότερα

mouseover event shouldn't fire if the pointing device wasn't moved

  • 1 απάντηση
  • 1 έχει αυτό το πρόβλημα
  • 16 προβολές
  • Τελευταία απάντηση από TyDraniu

more options

When I scroll a page using the keyboard, if an element with a mouseover event attached ends up underneath the mouse pointer (e.g. an element with a menu behaviour) then the event is fired (the menu is displayed).

I don't expect the menu to be displayed in this scenario, because I didn't actively move the mouse pointer to the menu element.

Note that in the documentation for mouseover, mousenter, etc. it says that the

  "event is fired when a pointing device is moved onto the element that has the listener attached"

(See: https://developer.mozilla.org/en-US/docs/Web/Events/mouseover)

As stated above, I didn't move the pointing device (mouse) onto the element, so I don't think the event should fire.

Amending this behaviour as per the documentation/specification would improve the UX a lot in pages that (incorrectly) use mouseover to display menus, IMHO. (They should be using mouseclick in most cases.) For example, if I navigate to a new page and my mouse pointer just happens to be over a menu element when the page finishes loading then the menu shows - often masking the content I wanted to see.

Regards, BB

When I scroll a page using the keyboard, if an element with a mouseover event attached ends up underneath the mouse pointer (e.g. an element with a menu behaviour) then the event is fired (the menu is displayed). I don't expect the menu to be displayed in this scenario, because I didn't actively move the mouse pointer to the menu element. Note that in the documentation for mouseover, mousenter, etc. it says that the "event is fired when a pointing device is moved onto the element that has the listener attached" (See: https://developer.mozilla.org/en-US/docs/Web/Events/mouseover) As stated above, I didn't move the pointing device (mouse) onto the element, so I don't think the event should fire. Amending this behaviour as per the documentation/specification would improve the UX a lot in pages that (incorrectly) use mouseover to display menus, IMHO. (They should be using mouseclick in most cases.) For example, if I navigate to a new page and my mouse pointer just happens to be over a menu element when the page finishes loading then the menu shows - often masking the content I wanted to see. Regards, BB

Όλες οι απαντήσεις (1)

more options

Could you please file a bug on https://bugzilla.mozilla.org/enter_bug.cgi ? This is the best place for bug reports.

You can give us the bug url later on.