Questions tagged [mouseenter]

For issues relating to setting up, subscribing to, or handling mouseenter events.

Mouseenter is an event that fires when the user moves the mouse inside of the element you registered the event on.

576 questions
5
votes
4 answers

jQuery mouseenter() and mouseleave() functions work repeatedly

I have a picture and a div. The div is hidden(display:none;). I want to show the div when mouse is over the picture and hide the div again when mouse is not over the picture. I use mouseenter() and mouseleave() events to do this but when moue is…
Baris Demirel
  • 150
  • 1
  • 1
  • 9
5
votes
0 answers

wpf HwndHost MouseMove event before previous element MouseLeave event

We have a Wpf application with an Hwndhost element we use for rendering 3d content via DirectX. We expose a "Panel" interface to clients which contains a MouseEnter and MouseLeave event. For the Hwndhost "panel" we simulate a MouseEnter event when…
Hank
  • 193
  • 1
  • 10
5
votes
1 answer

mouseenter/mouseleave event doesn't fire when the target is animated and passes under the mouse pointer

I have this example here to illustrate the situation: http://jsfiddle.net/nubrF/40/ If you hold your mouse onto the path of the animated element you can observe that the events are fired only in Firefox (not in IE, Chrome or Safari) when the target…
4
votes
2 answers

jQuery how to prevent mouseenter triggering when page loads with cursor hovering element

I have an element on my page with a mouseenter event bound to it which changes the dimensions of a child image. It works just as I want, however if you hit the page with your cursor hovering where the div will be, it triggers as soon as it loads -…
totallyNotLizards
  • 8,489
  • 9
  • 51
  • 85
4
votes
1 answer

MouseEnter/MouseLeave on RowDefinition

I want to do this: https://github.com/rails/rails/commit/f50aeda2f73b47c47664e3651c638ba624418b8b See how, as your mouse cursor moves over the lines of source code, an image/button appears to the left of the table? That. So I have a Grid, and…
epalm
  • 4,283
  • 4
  • 43
  • 65
4
votes
2 answers

MouseEnter and MouseLeave Event not raising in user control

Here is the problem: I have a simple c# form I have a simple c# user control containing a picturebox and other button. My form contains one instance of the user control. I want that when the user do a mouseEnter in the picture box, the mouse cursor…
Jean-François Côté
  • 4,200
  • 11
  • 52
  • 88
4
votes
2 answers

Unit testing Directive with arguments in Angular 2+

I have a directive which changes background color of an element during mouse over as below. import {Directive, ElementRef, HostListener, Input} from '@angular/core'; @Directive({ selector: '[appHighlightme]' }) export class HighlightmeDirective…
4
votes
1 answer

Mousenter event listener fires multiple times while moving mouse within element but only when updating the innerHTML

In my code I am attempting to update the innerHTML of a button on a mouseenter event. I would expect the event to fire once each time my mouse moves into the element, but instead while my mouse is moving within the element, the event listener fires…
4
votes
3 answers

jQuery mouseenter/mouseleave html()-swap issue

I have the following Javascript/jQuery function: function addEventHandler(){ $("div").mouseenter(function() { $(this).html("Over"); }).mouseleave(function() { $(this).html("Out"); }); } It works, but not perfectly. The…
o01
  • 5,191
  • 10
  • 44
  • 85
4
votes
1 answer

Rectangle area over panel to catch mouse inputs

c# winforms here. I need to draw an invisible rectangle area over a panel and catch his mouse enter/leave events. My situation (as for some other suggestions you may have): I have a media player (the panel), on mouse enter event I make visible a…
WizardingStudios
  • 554
  • 2
  • 7
  • 22
4
votes
4 answers

JS mouseenter triggered twice

The problem is about event mouseenter which is triggered twice. The code is here : http://jsfiddle.net/xyrhacom/ HTML :
text1
text2
JS…
user3656665
  • 117
  • 1
  • 6
4
votes
1 answer

How can I tie a WPF Command to a MouseEnter event?

I need to tie a WPF-Command to the MouseEnter event of a Stackpanel. How can I do that?
Andreas
  • 53
  • 5
4
votes
4 answers

JavaScript: mouseenter event in JavaScript?

Is there a mouse enter event in javascript(only JavaScript, no jQuery to be used, please)? When I do this, it gives no response. window.onload = initAll; function initAll(){ if(window.addEventListener){ …
Navneet Saini
  • 934
  • 4
  • 16
  • 33
4
votes
1 answer

Fade into black jQuery or Javascript effect? Exists?

Does there exist some kind of jQuery fade into black effect withing a specific part of a picture. So it really colors the picture into becoming black? I do know about the canvas element, but it just doesn`t seem like a good solution to me, would be…
user2097217
  • 419
  • 1
  • 9
  • 17
4
votes
2 answers

mouseenter mouseleave jquery hover and restart issue with simple.carousel.js

I created an edit to the simple.carousel.js to stop the carousel when hovered, but I'm having an issue restarting it when mouseleave. The code that I added to the simple.carousel.js is: // hover stop if(config.auto!=true) …
jgrannis
  • 321
  • 1
  • 3
  • 13
1
2
3
38 39