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

mousedown mouseup not working on vis #2429

Closed
umbert0dev opened this issue Dec 9, 2016 · 9 comments
Closed

mousedown mouseup not working on vis #2429

umbert0dev opened this issue Dec 9, 2016 · 9 comments
Assignees

Comments

@umbert0dev
Copy link

umbert0dev commented Dec 9, 2016

hi i have a problem with the use of mousedown and mouseup event in vis timeline....this is a simple example of my code....(the timeline is inside the div visualization)

$("#visualization").on("mousedown", function1);
function function1(e) {
console.log("mouseDown");
};

the strange thing is that click event works fine and that 1 month ago mousedown events works fine too.
I don't know what do because mousedown and click are differente event and i can't use mouseup with click....please help me to figure out

@Tooa
Copy link
Member

Tooa commented Dec 9, 2016

Maybe related to #2421. @yotamberk can you have a look at this too?

@yotamberk yotamberk self-assigned this Dec 9, 2016
@yotamberk
Copy link
Contributor

I'll try it out today\tomorrow

@umbert0dev
Copy link
Author

nobody can help me?

@yotamberk
Copy link
Contributor

I think an event.stopPropagation is can using the problem. I dont have the time right now to investigate this further. I need a few days to get to it ...

@umbert0dev
Copy link
Author

i tried to use it but nothing change...i noticed an interesting thing: only the left click doesn't work, if i click with right button mousedown event works...it is very strange

@yotamberk
Copy link
Contributor

@farso92 I noticed that the docs don't include mousedown and mouseup events (http://visjs.org/docs/timeline/#Events) - which also means that this isn't supported yet.
Luckly for you, I've added a PR now ( #2473) that supports the requested events.
Enjoy!
It will be available in the next version update (v4.18.0) or in the develop branch once it is approved and merged.

@umbert0dev
Copy link
Author

thank you so much...that's perfect

@byalekzzz
Copy link

Already implemented selection zooming and now waiting for those mouse events to be available. Hope soon and thanks a lot!

mojoaxel pushed a commit that referenced this issue Dec 31, 2016
* Fix redraw order
* Add mouseup, mousedown, mouseover, click and dblclick events on timeline
* Add docs
* Add to evenlistener example
* Add mousemove event listener
* Fix example
* Remove mouseUp and mouseDown events and fix docs for mouseOver
* Remove mouseUp and mouseDown from example
@mojoaxel mojoaxel added this to the Minor Release v4.18 milestone Dec 31, 2016
@mojoaxel
Copy link
Member

@yotamberk fixed this with #2473

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