Get your own customer support community
 

How do I stop drag events on overlays from being captured by the viewer?

For an app I'm building, I'm using Seadragon AJAX to manage icon images (as Overlays), and I'd like the user to be able to drag them around relative to the base image.

I'm creating MouseTracker instances pointed at the individual icons' elements, and those MoseTrackers seem to be getting press, drag, and release events from the mouse when you click and drag them.

The trouble is that dragging the mouse from an icon also triggers the viewer's default drag handler, and causes the base image to scroll along with the drag. So the net effect is that the base image scrolls, and the icon you're trying to drag remains stationary relative to the image space.

Is there any way to prevent the viewer from capturing drag events targeted at overlaid elements, or else override the default drag handler to not respond to such events?
 
indifferent
Inappropriate?
1 person has this question

The company marked this question as answered.


User_default_medium