Reputation: 1408
I am currently working with Seadragon Ajax technology (demos at zoom.it), adding custom interface etc. In particular, I am adding a certain numbers of overlays which need to capture some mouse events (like clicks) but which don't need to capture others (like wheel scrolling).
Seadragon uses mouse pointer position while scrolling to zoom to a pointed part of an image. I'd like to capture mouse events on the overlay but pass some of them under it. Thus, I'm looking for a way to implement a function which would:
The problem is, I have no idea how to reliably do the 2nd step. Seadragon creates many divs containing tiles with graphics, they change each time one pans or zooms the image. Thus, I can't just index it, I need a way to detect it on the fly.
I'd be grateful for any help and/or ideas.
Upvotes: 0
Views: 390
Reputation: 1408
OK, this is so simple I'm ashamed of myself.
document.elementFromPoint(x, y)
It's also almost universally supported... I was probably looking for sth named like getElementFromPoint
and this get
part misled me.
Upvotes: 0