Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Tooltip doesn't hides with scrolling #2820

Closed
nickmeewis opened this issue Mar 3, 2017 · 3 comments
Closed

Tooltip doesn't hides with scrolling #2820

nickmeewis opened this issue Mar 3, 2017 · 3 comments

Comments

@nickmeewis
Copy link

With the vis Timeline add a title to multiple items.

{ id: 1, content: 'item 1', group: 'test1', start: '2017-02-28T00:00:00+01:00', end: '2017-03-01T00:00:00+01:00', title: 'test 1' }, { id: 2, content: 'item 2', group: 'test1', start: '2017-03-01T00:00:00+01:00', end: '2017-03-05T04:30:00+01:00', title: 'test 2' },

Set options
horizontalScroll: true, zoomKey: 'ctrlKey', verticalScroll: true

When you hover over an item the tooltip appears, than scroll without moving your mouse until you reach an other item. A new tooltip appears and the other one doesn't hide.

It looks like the scroll event doesn't check the mouse over state.
But not sure how that part works.

@bradh
Copy link
Contributor

bradh commented Mar 4, 2017

Is this browser independent? Can you set up a jsbin that shows the problem?

@nickmeewis
Copy link
Author

nickmeewis commented Mar 6, 2017

I created a small jsbin.

http://jsbin.com/radipoketo/1

Hold your mouse on the first item ("item1") and use you scroll wheel to hover over the second item ("item2"), then scroll until you leave the second item. If you move your mouse the tooltip won't hide.

"*notice don't move your mouse until you left the last item"

Also rolling mode isn't working with horizontalScroll

@lewisjb
Copy link
Contributor

lewisjb commented Mar 7, 2017

Good spotting!

This has been partly fixed in the develop branch due to #2662.
I believe the only aspect that was fixed was the tool-tip never disappearing. But not the tool-tip not switching when you scroll (ie when your scrolling it will say "item 1" over item 2, or still having the tooltip when you aren't over anything), this is due to no mouse event being triggered from scrolling.

In release 4.19 it should only allow 1 tool-tip to be open at once, so when you have that tool-tip that doesn't disappear, if you hover over another item, it will go away.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants