These are chat archives for openseadragon/openseadragon

6th
May 2015
Patrick Liechty
@patrickliechty
May 06 2015 17:55
Why does Open Seadragon cancel events like mouse click?
We are using it and would like to get access to the event, but it is canceled
Ian Gilman
@iangilman
May 06 2015 17:56
@msalsbery knows more about this than I, but basically we need to do that in order to support all three of the input types we support: mouse, touch, and pen.
You're likely better off hooking into the event handlers that OSD provides, or using the OpenSeadragon.MouseTracker if need be.
What are you trying to accomplish?
Patrick Liechty
@patrickliechty
May 06 2015 17:58
Ok, I will look into that option
So in Firefox, a user can open our menu. When the user clicks off the menu, we want it to close. But in Firefox it doesn't close when a mouse click occurs on OSD
Works find in Chrome
Ian Gilman
@iangilman
May 06 2015 17:59
Because the menu overlaps the OSD viewer?
Oh, I see...if the user clicks into the OSD viewer to dismiss the menu.
Patrick Liechty
@patrickliechty
May 06 2015 17:59
ya
Ian Gilman
@iangilman
May 06 2015 18:00
Yeah, viewer.addHandler('canvas-click', dismissMenuIfOpen) should work
(dismissMenuIfOpen is your function, of course)
Patrick Liechty
@patrickliechty
May 06 2015 18:00
Ok, I will try that. Thanks for the help.
Ian Gilman
@iangilman
May 06 2015 18:01
:)