# Plotly\_hover strange behavior

**URL:** https://community.plotly.com/t/plotly-hover-strange-behavior/2694
**Category:** plotly.js
**Created:** [November 16, 2016, 4:19am UTC](https://community.plotly.com/t/plotly-hover-strange-behavior/2694 "2016-11-16T04:19:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ternst23](https://avatars.discourse-cdn.com/v4/letter/t/cc9497/32.png) [@ternst23](https://community.plotly.com/u/ternst23)
#### Post date: [November 16, 2016, 4:19am UTC](https://community.plotly.com/t/plotly-hover-strange-behavior/2694/1 "2016-11-16T04:19:03Z")

</div>

On a scatter plot, I noticed the following:

- I hover on a point and plotly\_hover is fired
- I leave the point and plotly\_unhover is fired
- I re-enter the same point and nothing is fired. (I was expecting plotly\_hover to get called again.)

It seems that I have to hover over a different point, then go back to the original point in order to get its plotly\_hover event to fire again.

Is this intentional?

As an example, say I wanted to just print a random number to the console every time I hovered over a point. Hovering over a point should print a random number. Leaving the point and re-entering should print a different random number. However, this doesn’t work because the second hover doesn’t seem to invoke plotly\_hover.

---

<div class="post-metadata">

### Author: ![philschka](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@philschka](https://community.plotly.com/u/philschka)
#### Post date: [November 16, 2016, 6:38am UTC](https://community.plotly.com/t/plotly-hover-strange-behavior/2694/2 "2016-11-16T06:38:21Z")

</div>

Hello,  
it is difficult to answer your question without seeing the code. I think I can’t reproduce the observed behaviour in my example: Hove and unhover works as expected. It is possible to enter the same point several times in a row.  
See here on jsFiddle: [https://jsfiddle.net/nm4c506q/](https://jsfiddle.net/nm4c506q/)

Can you provide your code? In best way as jsFiddle or codepen
